diff --git a/SRC/database/seeds/DatabaseSeeder.php b/SRC/database/seeds/DatabaseSeeder.php index 6a6e5b0..2a28a5b 100755 --- a/SRC/database/seeds/DatabaseSeeder.php +++ b/SRC/database/seeds/DatabaseSeeder.php @@ -27,7 +27,9 @@ class UserTableSeeder extends Seeder { //DB::table('users')->truncate(); $user = array( - 'name' => 'admin', + 'firstname' => 'admin', + 'lastname' => 'admin', + 'city' => 'Montauban', 'email' => 'admin@admin.com', 'password' => Hash::make('admin'), 'image' => '', @@ -38,7 +40,9 @@ class UserTableSeeder extends Seeder { DB::table('users')->insert($user); $user = array( - 'name' => 'ref', + 'lastname' => 'ref', + 'firstname' => 'ref', + 'city' => 'Toulouse', 'email' => 'ref@ref.com', 'password' => Hash::make('ref'), 'image' => '', diff --git a/SRC/resources/views/admin.blade.php b/SRC/resources/views/admin.blade.php index 77da79f..c43becd 100755 --- a/SRC/resources/views/admin.blade.php +++ b/SRC/resources/views/admin.blade.php @@ -14,6 +14,7 @@ Nom + Prénom Mail Lieu Se connecter @@ -23,9 +24,10 @@ @foreach ($users as $user) - {{$user->name}} + {{$user->lastname}} + {{$user->firstname}} {{$user->email}} - Toulouse + {{$user->city}}