abschlussprojekt-device-man.../device-app/app/Providers/AppServiceProvider.php
2023-04-03 19:56:13 +02:00

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;
});
}
}