identification
This commit is contained in:
0
SRC/database/seeds/.gitkeep
Normal file → Executable file
0
SRC/database/seeds/.gitkeep
Normal file → Executable file
22
SRC/database/seeds/DatabaseSeeder.php
Normal file → Executable file
22
SRC/database/seeds/DatabaseSeeder.php
Normal file → Executable file
@ -14,7 +14,27 @@ class DatabaseSeeder extends Seeder {
|
||||
{
|
||||
Model::unguard();
|
||||
|
||||
// $this->call('UserTableSeeder');
|
||||
$this->call('UserTableSeeder');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class UserTableSeeder extends Seeder {
|
||||
|
||||
public function run()
|
||||
{
|
||||
// Uncomment the below to wipe the table clean before populating
|
||||
//DB::table('users')->truncate();
|
||||
|
||||
$user = array(
|
||||
'name' => 'lolman',
|
||||
'email' => 'quentin.rouland@laposte.net',
|
||||
'password' => Hash::make('admin'),
|
||||
'image' => ''
|
||||
);
|
||||
|
||||
// Uncomment the below to run the seeder
|
||||
DB::table('users')->insert($user);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user