mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
30 lines
746 B
PHP
30 lines
746 B
PHP
<?php
|
|
|
|
use App\Concert;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
factory(App\Concert::class)->states('published')->create([
|
|
'title' => "The Red Chord",
|
|
'subtitle' => "with Animosity and Lethargy",
|
|
'venue' => "The Mosh Pit",
|
|
'venue_address' => "123 Example Lane",
|
|
'city' => "Laraville",
|
|
'state' => "ON",
|
|
'zip' => "17916",
|
|
'date' => Carbon::parse('2016-12-13 8:00pm'),
|
|
'ticket_price' => 3250,
|
|
'additional_information' => "This concert is 19+.",
|
|
]);
|
|
}
|
|
}
|