migrate to gtea from bistbucket
This commit is contained in:
31
database/seeders/BusinessCategorySeeder.php
Normal file
31
database/seeders/BusinessCategorySeeder.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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);
|
||||
|
||||
BusinessCategory::factory()->count(100)->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user