<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Route;
use App\Http\Middleware\CustomAuth;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     */
    public function register(): void
    {
        //
    }
    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        
        // Gate::define('viewPulse', function ($user) {
        //     return $user->isAdmin();
        // });
        
        // dd($request);
        // Pulse::auth(function ($request) {
        //     return $request->user() && $request->user()->isAdmin();
        // });

        //
        Route::aliasMiddleware('custom.auth', CustomAuth::class);
    }
}
