Merge branch 'master' of https://github.com/matthieupenchenat81/ModuleWeb
This commit is contained in:
commit
2addf1a30b
@ -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');
|
||||
|
@ -2,8 +2,19 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Session::get('message_add') }}
|
||||
{{ Session::get('message_delete') }}
|
||||
<div class="col-sm-12">
|
||||
@if (session('message_add'))
|
||||
<div class="alert alert-success col-sm-4">
|
||||
{{ Session::get('message_add') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('message_delete'))
|
||||
<div class="alert alert-success col-sm-4">
|
||||
{{ Session::get('message_delete') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="col-md-2"></div>
|
||||
|
Reference in New Issue
Block a user