.
This commit is contained in:
21
database/seeds/UsersTableSeeder.php
Normal file
21
database/seeds/UsersTableSeeder.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UsersTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('users')->insert([
|
||||
'name' => 'admin',
|
||||
'email' => 'admin@example.com',
|
||||
'password' => bcrypt('secret'),
|
||||
]);
|
||||
//factory('App\User', 2)->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user