diff --git a/app/Http/Controllers/Admin/AnnuaireController.php b/app/Http/Controllers/Admin/AnnuaireController.php index 0a4e9c55..a8ddd9dc 100644 --- a/app/Http/Controllers/Admin/AnnuaireController.php +++ b/app/Http/Controllers/Admin/AnnuaireController.php @@ -38,10 +38,6 @@ public function store(StoreAnnuaireRequest $request) { $annuaire = Annuaire::create($request->all()); - if ($media = $request->input('ck-media', false)) { - Media::whereIn('id', $media)->update(['model_id' => $annuaire->id]); - } - return redirect()->route('admin.annuaires.index'); } diff --git a/app/Http/Controllers/Admin/ApplicationServiceController.php b/app/Http/Controllers/Admin/ApplicationServiceController.php index 814406df..de3dca2c 100644 --- a/app/Http/Controllers/Admin/ApplicationServiceController.php +++ b/app/Http/Controllers/Admin/ApplicationServiceController.php @@ -39,10 +39,6 @@ public function store(StoreApplicationServiceRequest $request) $applicationService = ApplicationService::create($request->all()); $applicationService->modules()->sync($request->input('modules', [])); - if ($media = $request->input('ck-media', false)) { - Media::whereIn('id', $media)->update(['model_id' => $applicationService->id]); - } - return redirect()->route('admin.application-services.index'); } diff --git a/app/Information.php b/app/Information.php index 2bae119d..47b4235c 100644 --- a/app/Information.php +++ b/app/Information.php @@ -48,11 +48,6 @@ protected function serializeDate(DateTimeInterface $date) return $date->format('Y-m-d H:i:s'); } - public function registerMediaConversions(Media $media = null) - { - $this->addMediaConversion('thumb')->width(50)->height(50); - } - public function informationsDatabases() { return $this->belongsToMany(Database::class); diff --git a/app/Relation.php b/app/Relation.php index c3308604..f4d53fc4 100644 --- a/app/Relation.php +++ b/app/Relation.php @@ -42,11 +42,6 @@ protected function serializeDate(DateTimeInterface $date) return $date->format('Y-m-d H:i:s'); } - public function registerMediaConversions(Media $media = null) - { - $this->addMediaConversion('thumb')->width(50)->height(50); - } - public function source() { return $this->belongsTo(Entity::class, 'source_id');