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