Added factory and seeder for sub-bookings.

This commit is contained in:
Lukas Halbritter
2018-09-20 16:48:56 +02:00
parent c9bc400308
commit b38d7ea54e
4 changed files with 57 additions and 5 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
<?php
use Faker\Generator as Faker;
use Carbon\Carbon;
$factory->define(App\Booking::class, function (Faker $faker) {
return [
'date'=> $faker->dateTimeBetween('2014-01-01'),
'reference' => $faker->text(50),
'person_or_company' => $faker->name,
'note' => $faker->text(10)
'note' => $faker->text(10),
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
];
});