Skip to content

Commit

Permalink
Remove media
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jun 23, 2021
1 parent 4ede75d commit 6fa471f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions app/Http/Controllers/Admin/AnnuaireController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
4 changes: 0 additions & 4 deletions app/Http/Controllers/Admin/ApplicationServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
5 changes: 0 additions & 5 deletions app/Information.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions app/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6fa471f

Please sign in to comment.