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', 'city' => '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', 'city' => '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', 'city' => '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); } }