public function delete(Model $model) { $deleted = $model->delete(); if ($deleted) { app('cache')->flush(); } return $deleted; }