- add ProjectsTableSeeder.php
- project label: allow 10 chars
This commit is contained in:
parent
4b5136ab9b
commit
54edfb4617
4 changed files with 29 additions and 2 deletions
|
@ -30,6 +30,7 @@ class DatabaseSeeder extends Seeder
|
|||
$this->call('LanguagesTableSeeder');
|
||||
$this->call('PagesTableSeeder');
|
||||
$this->call('CollectionsTableSeeder');
|
||||
$this->call('ProjectsTableSeeder');
|
||||
$this->command->info('User table seeded!');
|
||||
}
|
||||
}
|
||||
|
|
26
database/seeds/ProjectsTableSeeder.php
Normal file
26
database/seeds/ProjectsTableSeeder.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ProjectsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('projects')->insert([
|
||||
[
|
||||
'label' => 'ALLG_FACHLICH',
|
||||
'name' => 'Allgemein fachliche Arbeiten',
|
||||
'description' => 'Allgemein fachlich interdisziplinäre Arbeiten',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue