tethys/database/seeders/ProjectsTableSeeder.php
Arno Kaimbacher 7d1406ee5c - array/string Helpers: Laravel Convert old array and string helpers into their modern class-based methods.
-  Use Laravel Carbon: Laravel provides an Illuminate\Support\Carbon class which wraps the underlying Carbon class. By using this class, you gain access to some additional testing methods and create separation between your code and underlying dependencies.
2022-08-12 07:53:27 +00:00

29 lines
652 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Support\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(),
],
]);
}
}