forked from miguel456/rbrecruiter
Add permission and provider imports
This commit is contained in:
parent
d6c49a5cf0
commit
6be5e241d4
|
@ -8,6 +8,6 @@ class Options extends Facade
|
|||
{
|
||||
public static function getFacadeAccessor()
|
||||
{
|
||||
return 'sm-options';
|
||||
return 'smOptions';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ class OptionsProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
App::bind('sm-options', function (){
|
||||
App::bind('smOptions', function (){
|
||||
return new App\Helpers\Options();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -180,6 +180,7 @@ return [
|
|||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
\App\Providers\MojangStatusProvider::class,
|
||||
\App\Providers\OptionsProvider::class
|
||||
|
||||
],
|
||||
|
||||
|
@ -235,7 +236,8 @@ return [
|
|||
'UUID' => App\Facades\UUID::class,
|
||||
'IP' => App\Facades\IP::class,
|
||||
'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class,
|
||||
'ContextAwareValidator' => App\Facades\ContextAwareValidation::class
|
||||
'ContextAwareValidator' => App\Facades\ContextAwareValidation::class,
|
||||
'Settings' => App\Facades\Options::class
|
||||
|
||||
],
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
use Spatie\Permission\Models\Role;
|
||||
|
||||
class NewPermissions extends Seeder
|
||||
{
|
||||
|
@ -11,7 +13,7 @@ class NewPermissions extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
$developer = \Spatie\Permission\Models\Role::create([
|
||||
$developer = Role::create([
|
||||
'name' => 'developer'
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue