31 lines
665 B
PHP
31 lines
665 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\User;
|
|
use Carbon\Carbon;
|
|
|
|
class UsersTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
User::create([
|
|
'name' => 'Dupont',
|
|
'email' => 'dupont@chezlui.fr',
|
|
'role' => 'admin',
|
|
'password' => bcrypt('admin'),
|
|
'email_verified_at' => Carbon::now(),
|
|
]);
|
|
User::create([
|
|
'name' => 'Martin',
|
|
'email' => 'martin@chezlui.fr',
|
|
'password' => bcrypt('user'),
|
|
'email_verified_at' => Carbon::now(),
|
|
]);
|
|
}
|
|
}
|