Files
Deathgarden_Rebirth-Rewrite/dist/app/Providers/AuthServiceProvider.php
Vari 1bf28e2c50 Added package spatie/laravel-permission for adding roles and permissions.
Setup default admin and view-log role and permission (the whole reason i added all this stuff).

also added artisan command to give user a role via command line with artisan permissions:AddRoleToUser {rolename} {userId}
2024-02-14 21:50:42 +01:00

28 lines
545 B
PHP

<?php
namespace App\Providers;
// use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* The model to policy mappings for the application.
*
* @var array<class-string, class-string>
*/
protected $policies = [
//
];
/**
* Register any authentication / authorization services.
*/
public function boot(): void
{
}
}