Ich Ich, gros commit

This commit is contained in:
bglacial
2018-10-08 22:31:58 +02:00
parent ecded0947f
commit b11b2befd7
49 changed files with 37276 additions and 11977 deletions

View File

@ -0,0 +1,30 @@
<?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(),
]);
}
}