mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
ALPHA 3.0.5e
This commit is contained in:
@@ -173,4 +173,28 @@ class UserController extends Controller
|
||||
$notification->delete();
|
||||
return redirect(request('url'));
|
||||
}
|
||||
|
||||
public function showUserProfil($id = 0)
|
||||
{
|
||||
if ($id == 0) {
|
||||
$id = \Auth::User()->id;
|
||||
}
|
||||
return view('admin.user.profil',['user' => \App\User::find($id)]);
|
||||
}
|
||||
|
||||
public function editUserAvatar($id)
|
||||
{
|
||||
$user = \Auth::User();
|
||||
|
||||
$user->avatar = $id;
|
||||
|
||||
$user->save();
|
||||
|
||||
return redirect('/admin/profil/avatar')->with('status', 'Modification enregistré');
|
||||
}
|
||||
|
||||
public function UserAvatar()
|
||||
{
|
||||
return view('admin.user.profil.avatar');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user