Horje
laravel onclick all notification reads Code Example
laravel onclick all notification reads
class UserNotificationsController extends Controller
{

/**
     * @param  int  $id  Notification ID
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        $notification = auth()->user()->notifications()->where('id', $id)->first();

        if ($notification) {
            $notification->markAsRead();
            return redirect($notification->data['link']);
        }
    }
}




Php

Related
php month single digit Code Example php month single digit Code Example
remove all breadcrumbs php Code Example remove all breadcrumbs php Code Example
twig server Code Example twig server Code Example
tcpdf Array and string offset access syntax with curly braces is deprecated Code Example tcpdf Array and string offset access syntax with curly braces is deprecated Code Example
how to run php script every 5 minutes Code Example how to run php script every 5 minutes Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11