Files
thrillwiki_laravel/database/seeders/ParkSeeder.php

40 lines
1.2 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Park;
use App\Enums\ParkStatus;
use Illuminate\Database\Seeder;
class ParkSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// Create a test park
Park::create([
'name' => 'Test Park',
'slug' => 'test-park',
'description' => 'This is a test park for demonstrating the photo management system.',
'status' => ParkStatus::OPERATING,
'opening_date' => '2020-01-01',
'size_acres' => 100.5,
'operating_season' => 'Year-round',
'website' => 'https://example.com',
]);
// Create a second park
Park::create([
'name' => 'Adventure World',
'slug' => 'adventure-world',
'description' => 'A thrilling adventure park with exciting rides and attractions.',
'status' => ParkStatus::OPERATING,
'opening_date' => '2015-05-15',
'size_acres' => 250.75,
'operating_season' => 'March to October',
'website' => 'https://adventureworld-example.com',
]);
}
}