Sindbad~EG File Manager

Current Path : /var/www/html/xfacil.desafio.com.py/app/Http/Livewire/
Upload File :
Current File : /var/www/html/xfacil.desafio.com.py/app/Http/Livewire/Notificaciones.php

<?php

namespace App\Http\Livewire;

use Livewire\Component;
use Auth;

class Notificaciones extends Component
{
    public function render()
    {
        return view('livewire.notificaciones');
    }

    public function leer($url, $notificacion_id){

        auth()->user()->unreadNotifications
                ->when($notificacion_id, function($query) use ($notificacion_id){
                    return $query->where('id', $notificacion_id);
                })->markAsRead();

        return redirect()->to($url);

    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists