/** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); DB::table('users')->delete(); $user = App\User::insert(['name' => 'phuong', 'email' => 'phuongpt31', 'password' => bcrypt('zxcv1234')]); $role = App\Role::insert(['name' => 'admin', 'slug' => 'admin']); $user->roles()->save($role); }
/** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create('es_VE'); for ($i = 0; $i < 100; $i++) { $usuarios[$i] = ['nombre' => $faker->name, 'email' => $faker->email, 'password' => bcrypt('123456')]; } App\User::insert($usuarios); App\User::create(['nombre' => "Gabriel Bejarano", 'Email' => "*****@*****.**", 'password' => bcrypt('gab23gab'), 'admin' => 1]); }
/** * Run the database seeds. * * @return void */ public function run() { // factory('App\User', 5)->create( // [ // 'password' => bcrypt('123456') // ] // ); App\User::insert([['name' => 'Shams Sadek', 'email' => '*****@*****.**', 'password' => bcrypt('123456')], ['name' => 'Talha Ekhlas', 'email' => '*****@*****.**', 'password' => bcrypt('123456')], ['name' => 'Mahbub Rabbani', 'email' => 'mahbub.com', 'password' => bcrypt('123456')]]); }
/** * Run the database seeds. * * @return void */ public function run() { // App\User::insert(array( // array( // 'name' =>'admin', // 'password' => Hash::make('admin'), // 'email'=> '*****@*****.**', // 'deptID' =>2, // 'is_admin' => true // ))); // App\User::insert(array(array( // 'name' =>'eric', // 'password' => Hash::make('user'), // 'email'=> '*****@*****.**', // 'deptID' =>2, // 'is_admin' => false // ))); App\User::insert(array(array('name' => 'lowassa', 'password' => Hash::make('user3'), 'email' => '*****@*****.**', 'deptID' => 3, 'is_admin' => false))); }
public function run() { App\User::insert([['name' => 'Ricardo Jose Montes Rodriguez', 'email' => '*****@*****.**', 'password' => bcrypt(123456), 'username' => 'rmontes', 'active' => true, 'remember_token' => str_random(10), 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')]]); }