diff --git a/app/Facades/Options.php b/app/Facades/Options.php index 74e5421..6fbd4c0 100644 --- a/app/Facades/Options.php +++ b/app/Facades/Options.php @@ -8,6 +8,6 @@ class Options extends Facade { public static function getFacadeAccessor() { - return 'sm-options'; + return 'smOptions'; } } diff --git a/app/Providers/OptionsProvider.php b/app/Providers/OptionsProvider.php index 8710b40..3bc98db 100644 --- a/app/Providers/OptionsProvider.php +++ b/app/Providers/OptionsProvider.php @@ -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(); }); } diff --git a/config/app.php b/config/app.php index 8ca7183..bcd24bf 100644 --- a/config/app.php +++ b/config/app.php @@ -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 ], diff --git a/database/seeds/NewPermissions.php b/database/seeds/NewPermissions.php index c831e39..331d13c 100644 --- a/database/seeds/NewPermissions.php +++ b/database/seeds/NewPermissions.php @@ -1,6 +1,8 @@ 'developer' ]);