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