Added some seeders.
This commit is contained in:
@@ -11,6 +11,6 @@ class TestBookingsTableSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
//
|
factory(App\Booking::class, 500)->create();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
use Carbon\Carbon;
|
|
||||||
|
|
||||||
class TestPeopleTableSeeder extends Seeder
|
class TestPeopleTableSeeder extends Seeder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,55 +12,6 @@ class TestProjectsTableSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
// Projects
|
factory(App\Project::class, 20)->create();
|
||||||
DB::table('projects')->insert([
|
|
||||||
// Closed
|
|
||||||
[
|
|
||||||
'name' => 'Wintersemester 2014',
|
|
||||||
'start_date' => '2014-09-01',
|
|
||||||
'end_date' => '2015-02-28',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'name' => 'Sommersemester 2015',
|
|
||||||
'start_date' => '2015-03-01',
|
|
||||||
'end_date' => '2015-08-31',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
],
|
|
||||||
|
|
||||||
// Active
|
|
||||||
[
|
|
||||||
'name' => 'Wintersemester 2018',
|
|
||||||
'start_date' => '2018-09-01',
|
|
||||||
'end_date' => '2019-02-28',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'name' => 'Projekt WiSe 2018',
|
|
||||||
'start_date' => '2018-09-10',
|
|
||||||
'end_date' => '2018-12-31',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
],
|
|
||||||
|
|
||||||
// Upcoming
|
|
||||||
[
|
|
||||||
'name' => 'Sommersemester 2019',
|
|
||||||
'start_date' => '2019-03-01',
|
|
||||||
'end_date' => '2019-08-31',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'name' => 'Projekt SoSe 2019',
|
|
||||||
'start_date' => '2019-05-01',
|
|
||||||
'end_date' => '2019-05-31',
|
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
||||||
]
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user