- $this->app->bind('images', function() {
- return new ImageService(
- $this->app->make('Intervention\Image\ImageManager'),
- $this->app->make('Illuminate\Contracts\Filesystem\Factory'),
- $this->app->make('Illuminate\Contracts\Cache\Repository')
- );
+ $this->app->singleton('images', function () {
+ return $this->app->make(ImageService::class);
+ });
+
+ $this->app->singleton('permissions', function () {
+ return $this->app->make(PermissionService::class);