28 lines
517 B
PHP
28 lines
517 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Opcodes\LogViewer\Facades\LogViewer;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
LogViewer::auth(function ($request) {
|
|
return $request->user()->has_admin_privileges ?? false;
|
|
});
|
|
}
|
|
}
|