diff --git a/SRC/app/Http/Controllers/AdminController.php b/SRC/app/Http/Controllers/AdminController.php index b554348..cb8d055 100755 --- a/SRC/app/Http/Controllers/AdminController.php +++ b/SRC/app/Http/Controllers/AdminController.php @@ -45,7 +45,7 @@ class AdminController extends Controller { $user->droits = (Input::get('isadmin'))?1:0; $user->city = Input::get('city'); $user->lastname = Input::get('lastname'); - $user->image = "pictures/user_picture/default.png"; + $user->image = "pictures/user_picture/default.jpg"; $user->save(); return redirect('/admin')->with('message_add', 'User ajouté avec succès'); diff --git a/SRC/resources/views/admin.blade.php b/SRC/resources/views/admin.blade.php index 536cc65..a691134 100755 --- a/SRC/resources/views/admin.blade.php +++ b/SRC/resources/views/admin.blade.php @@ -2,8 +2,19 @@ @section('content') -{{ Session::get('message_add') }} -{{ Session::get('message_delete') }} +
+ @if (session('message_add')) +
+ {{ Session::get('message_add') }} +
+ @endif + + @if (session('message_delete')) +
+ {{ Session::get('message_delete') }} +
+ @endif +