mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
108 - Connecting Promoters and Concerts
This commit is contained in:
@@ -26,6 +26,9 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
|
||||
|
||||
$factory->define(App\Concert::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'user_id' => function () {
|
||||
return factory(App\User::class)->create()->id;
|
||||
},
|
||||
'title' => 'Example Band',
|
||||
'subtitle' => 'with The Fake Openers',
|
||||
'date' => Carbon::parse('+2 weeks'),
|
||||
|
||||
@@ -15,6 +15,7 @@ class CreateConcertsTable extends Migration
|
||||
{
|
||||
Schema::create('concerts', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->string('title');
|
||||
$table->string('subtitle')->nullable();
|
||||
$table->text('additional_information')->nullable();
|
||||
|
||||
Reference in New Issue
Block a user