migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Frontend\Database\Seeders;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Authentication\Models\Restaurant;
|
||||
use Modules\Frontend\Models\WhyChooseUs;
|
||||
|
||||
class WhyChooseUsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$restaurant = Restaurant::first();
|
||||
if (! $restaurant) {
|
||||
$this->command->info('No restaurant found! Please seed the restaurants table first.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
WhyChooseUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
'title' => 'Personalized Education',
|
||||
'description' => 'We tailor the learning experience to suit each customer`s strengths and needs.',
|
||||
'icon' => 'https://i.ibb.co.com/hx9JgrTq/fi-2097062.png',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
WhyChooseUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
'title' => 'Experienced Faculty',
|
||||
'description' => 'Our team of highly qualified teachers is dedicated to nurturing your child`s potential .',
|
||||
'icon' => 'https://i.ibb.co.com/TqwD1x5h/fi-2097104.png',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
WhyChooseUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
'title' => 'State-of-the-Art Facilities',
|
||||
'description' => 'From smart classrooms to recreational areas, we offer the best resources for customers to thrive.',
|
||||
'icon' => 'https://i.ibb.co.com/4RVcT1w1/fi-2097055.png',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
WhyChooseUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
'title' => 'Holistic Development',
|
||||
'description' => 'Beyond academics, we focus on sports, arts, and personal growth to prepare customers for the future.',
|
||||
'icon' => 'https://i.ibb.co.com/Pv8GhnbM/fi-2097052.png',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user