Add permission and provider imports

This commit is contained in:
Miguel Nogueira 2020-08-31 16:41:01 +01:00
parent d6c49a5cf0
commit 6be5e241d4
4 changed files with 8 additions and 4 deletions

View File

@ -8,6 +8,6 @@ class Options extends Facade
{ {
public static function getFacadeAccessor() public static function getFacadeAccessor()
{ {
return 'sm-options'; return 'smOptions';
} }
} }

View File

@ -24,7 +24,7 @@ class OptionsProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
App::bind('sm-options', function (){ App::bind('smOptions', function (){
return new App\Helpers\Options(); return new App\Helpers\Options();
}); });
} }

View File

@ -180,6 +180,7 @@ return [
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
\App\Providers\MojangStatusProvider::class, \App\Providers\MojangStatusProvider::class,
\App\Providers\OptionsProvider::class
], ],
@ -235,7 +236,8 @@ return [
'UUID' => App\Facades\UUID::class, 'UUID' => App\Facades\UUID::class,
'IP' => App\Facades\IP::class, 'IP' => App\Facades\IP::class,
'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class, 'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class,
'ContextAwareValidator' => App\Facades\ContextAwareValidation::class 'ContextAwareValidator' => App\Facades\ContextAwareValidation::class,
'Settings' => App\Facades\Options::class
], ],

View File

@ -1,6 +1,8 @@
<?php <?php
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;
class NewPermissions extends Seeder class NewPermissions extends Seeder
{ {
@ -11,7 +13,7 @@ class NewPermissions extends Seeder
*/ */
public function run() public function run()
{ {
$developer = \Spatie\Permission\Models\Role::create([ $developer = Role::create([
'name' => 'developer' 'name' => 'developer'
]); ]);