fanatic/database/seeders/DatabaseSeeder.php

33 lines
637 B
PHP
Raw Normal View History

2022-04-22 20:01:30 -07:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
2022-04-23 16:52:47 -07:00
use Illuminate\Support\Facades\DB;
2022-04-22 20:01:30 -07:00
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
2022-04-23 16:52:47 -07:00
DB::table('collectives')->insert([
'created_at' => now(),
'updated_at' => now(),
'name' => 'marley',
'email' => 'mar@m.punkfairie.net',
'title' => 'aeipathy',
'password' => bcrypt('marfan4'),
]);
2022-04-23 16:25:16 -07:00
$this->call([
2022-04-23 16:52:47 -07:00
CategorySeeder::class,
JoinedSeeder::class
2022-04-23 16:25:16 -07:00
]);
2022-04-22 20:01:30 -07:00
}
}