Delete an instance by it's ID.
public deleteById ( integer $model_id ) : boolean | ||
$model_id | integer | |
Результат | boolean |
/** * Remove the specified model from storage. * * @param int $model_id * * @return array */ public function destroy($model_id) { $this->repository->deleteById($model_id); return ['success' => true]; }