mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
27 lines
526 B
PHP
27 lines
526 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
Model::unguard();
|
|
|
|
// $this->call(UserTableSeeder::class);
|
|
\Oxbow\User::create([
|
|
'name' => 'Admin',
|
|
'email' => 'admin@admin.com',
|
|
'password' => \Illuminate\Support\Facades\Hash::make('password')
|
|
]);
|
|
|
|
Model::reguard();
|
|
}
|
|
}
|