Simplify code
This commit is contained in:
parent
9eae104402
commit
facd92356c
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use App\Events\UserProfileUpdated;
|
||||
use App\Mail\EmailVerification;
|
||||
use App\Models\Texture;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ namespace App\Providers;
|
|||
|
||||
use App\Events;
|
||||
use App\Exceptions\PrettyPageException;
|
||||
use App\Services;
|
||||
use Event;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Redis;
|
||||
|
|
@ -19,10 +20,10 @@ class AppServiceProvider extends ServiceProvider
|
|||
public function register()
|
||||
{
|
||||
$this->app->singleton('cipher', 'App\Services\Cipher\\'.config('secure.cipher'));
|
||||
$this->app->singleton(\App\Services\Option::class);
|
||||
$this->app->alias(\App\Services\Option::class, 'options');
|
||||
$this->app->singleton(\App\Services\Webpack::class);
|
||||
$this->app->singleton(\App\Services\Filter::class);
|
||||
$this->app->singleton(Services\Option::class);
|
||||
$this->app->alias(Services\Option::class, 'options');
|
||||
$this->app->singleton(Services\Webpack::class);
|
||||
$this->app->singleton(Services\Filter::class);
|
||||
$this->app->singleton('oauth.providers', function () {
|
||||
return new \Illuminate\Support\Collection();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user