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\ReadyToJoinUs;
|
||||
|
||||
class ReadyToJoinUsSeeder 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;
|
||||
}
|
||||
|
||||
ReadyToJoinUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
|
||||
'title' => 'Inquiry & Campus Visit',
|
||||
'description' => 'Get in touch or schedule a campus tour to see our facilities and learn more about what we offer.',
|
||||
'icon' => 'https://i.ibb.co.com/PZrX6pDQ/Group-2.png',
|
||||
'button_name' => 'Contact Us',
|
||||
'button_link' => '#',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
ReadyToJoinUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
|
||||
'title' => 'Submit Your Application',
|
||||
'description' => 'Complete the online application form to start the admission process.',
|
||||
'icon' => 'https://i.ibb.co.com/35nLXwLR/Group-1.png',
|
||||
'button_name' => 'Apply Now',
|
||||
'button_link' => '#',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
ReadyToJoinUs::create([
|
||||
'restaurant_id' => $restaurant->id,
|
||||
|
||||
'title' => 'Admission Confirmation',
|
||||
'description' => 'Once accepted, complete your enrollment and confirm your place for the upcoming academic year.',
|
||||
'icon' => 'https://i.ibb.co.com/yns7RVZN/Group.png',
|
||||
'button_name' => 'Download Admission Form',
|
||||
'button_link' => '#',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user