feat: initial project setup with Laravel 12 and Filament v4

This commit is contained in:
SajjadMahmoody
2026-04-03 17:25:17 +03:30
parent eca5d74b36
commit 09ee1cb743
324 changed files with 78304 additions and 23 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Database\Seeders;
use App\Models\PaymentType;
use Illuminate\Database\Seeder;
class PaymentTypeSeeder extends Seeder
{
public function run(): void
{
$paymentTypes = [
['payment_type' => 'بانک ملت', 'account_no' => '222', 'pos_no' => null, 'description' => null],
['payment_type' => 'بانک سامان', 'account_no' => '111', 'pos_no' => null, 'description' => null],
['payment_type' => 'پرداخت نقدی', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'بانک صادرات', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'کارت به کارت بانکی', 'account_no' => '123', 'pos_no' => '456', 'description' => null],
['payment_type' => 'نقد و کارت', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'توسعه عصر', 'account_no' => null, 'pos_no' => null, 'description' => null],
];
foreach ($paymentTypes as $item) {
PaymentType::firstOrCreate(
['payment_type' => $item['payment_type']],
$item
);
}
}
}