Refactoring Complet

Voir facebook pour l'installation de la nouvelle BDD.
This commit is contained in:
alexandre-pereira
2015-03-14 14:36:03 +01:00
parent 0205f4c864
commit de05756a7b
229 changed files with 1762 additions and 18699 deletions

View File

@ -14,56 +14,7 @@ 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(
'firstname' => 'superadmin',
'lastname' => 'superadmin',
'school' => 'Montauban',
'email' => 'superAdmin@superAdmin.com',
'password' => Hash::make('superadmin'),
'image' => 'pictures/user_picture/default.png',
'droits' => '2'
);
// Uncomment the below to run the seeder
DB::table('users')->insert($user);
$user = array(
'firstname' => 'admin',
'lastname' => 'admin',
'school' => 'Montauban',
'email' => 'admin@admin.com',
'password' => Hash::make('admin'),
'image' => 'pictures/user_picture/default.png',
'droits' => '1'
);
// Uncomment the below to run the seeder
DB::table('users')->insert($user);
$user = array(
'lastname' => 'ref',
'firstname' => 'ref',
'school' => 'Toulouse',
'email' => 'ref@ref.com',
'password' => Hash::make('ref'),
'image' => 'pictures/user_picture/default.png',
'droits' => '0'
);
// Uncomment the below to run the seeder
DB::table('users')->insert($user);
}
}