BookStack/database/seeds/DatabaseSeeder.php

27 lines
526 B
PHP
Raw Normal View History

2015-07-12 21:01:42 +02:00
<?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);
2015-08-05 21:59:39 +02:00
\Oxbow\User::create([
'name' => 'Admin',
'email' => 'admin@admin.com',
'password' => \Illuminate\Support\Facades\Hash::make('password')
]);
2015-07-12 21:01:42 +02:00
Model::reguard();
}
}