CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/app/Http/Controllers/
Upload File :
Current File : /var/www/hrms.uiet.co.in/app/Http/Controllers/DashboardController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class DashboardController extends Controller
{
    public function index()
    {

        if(Auth::user()->hasRole('superadmin')){
            return view('superadmin_dashboard');
        }else{
            return view('dashboard');
        }

    }
    public function dashboard()
    {
        $notifications = Auth::user()->unreadNotifications; // Fetch unread notifications
        return view('dashboard', compact('notifications')); // Pass to the dashboard view
    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY