create all azmayesh resources and its dependencies
This commit is contained in:
37
database/seeders/AzmayeshFieldSeeder.php
Normal file
37
database/seeders/AzmayeshFieldSeeder.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AzmayeshFieldSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('azmayesh_fields')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'طول',
|
||||
'unit' => 'سانتی متر',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
'name' => 'عرض',
|
||||
'unit' => 'سانتی متر',
|
||||
'type' => 'input',
|
||||
'option' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user