ALPHA 3.0.6

This commit is contained in:
TheGamecraft
2018-11-08 12:16:01 -05:00
parent 87264660bc
commit 2b6bd17b8d
11 changed files with 193 additions and 25 deletions

View File

@@ -174,6 +174,24 @@ class UserController extends Controller
return redirect(request('url'));
}
public function notificationmarkALL()
{
$notifications = \Auth::User()->unreadNotifications;
foreach($notifications as $notification)
{
$notification->delete();
}
return redirect()->back();
}
public function notificationmarkECC($id)
{
$notification = \Auth::User()->unreadNotifications->where('id',$id)->first();
$notification->delete();
return redirect('/ecc');
}
public function showUserProfil($id = 0)
{
if ($id == 0) {