mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
153 - Testing a Console Command
This commit is contained in:
@@ -80,5 +80,8 @@ $factory->define(App\Order::class, function (Faker\Generator $faker) {
|
||||
});
|
||||
|
||||
$factory->define(App\Invitation::class, function (Faker\Generator $faker) {
|
||||
return [];
|
||||
return [
|
||||
'email' => 'somebody@example.com',
|
||||
'code' => 'TESTCODE1234',
|
||||
];
|
||||
});
|
||||
|
||||
@@ -16,6 +16,7 @@ class CreateInvitationsTable extends Migration
|
||||
Schema::create('invitations', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id')->nullable();
|
||||
$table->string('email');
|
||||
$table->string('code');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user