|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/___pospro/superadmin.balancebizness.com/database/seeders/ |
Upload File : |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\BusinessCategory;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class BusinessCategorySeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$business_categories = array(
array('name' => 'Fashion Store','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'Electronics Store','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'Computer Store','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'Vegetable Store','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'Meat Store','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'BR','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'Restaurant','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
array('name' => 'CAR WASH','description' => NULL,'status' => 1,'created_at' => now(),'updated_at' => now()),
);
BusinessCategory::insert($business_categories);
}
}