Compare commits
3
Commits
a628dc1424
...
a2ed9a9838
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2ed9a9838 | ||
|
|
937004a48c | ||
|
|
bd6e311a73 |
@@ -25,8 +25,9 @@ class CreateBookingsTable extends Migration
|
||||
// The name of the person or company which the booking belongs to
|
||||
$table->string('person_or_company');
|
||||
|
||||
// An additional note to the booking
|
||||
$table->string('note')->nullable();
|
||||
// An additional note to the booking. The real dataset contains
|
||||
// notes longer than the 191-character default string length.
|
||||
$table->text('note')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DevUserSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Create a local development login.
|
||||
*
|
||||
* Email: dev@pollux.local
|
||||
* Password: password
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
App\User::updateOrCreate(
|
||||
['email' => 'dev@pollux.local'],
|
||||
[
|
||||
'name' => 'Dev User',
|
||||
'password' => bcrypt('password'),
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,6 @@ class ExampleTest extends TestCase
|
||||
{
|
||||
$response = $this->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertRedirect('/bookings');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user