22 lines
406 B
PHP
22 lines
406 B
PHP
<?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();
|
|
}
|
|
}
|