mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 03:06:03 -05:00
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}
27 lines
479 B
PHP
27 lines
479 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// Needed by spatie/laravel-permissions
|
|
Schema::defaultStringLength(125);
|
|
}
|
|
}
|