deleteById() 공개 메소드

Delete an instance by it's ID.
public deleteById ( integer $model_id ) : boolean
$model_id integer
리턴 boolean
예제 #1
0
 /**
  * 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];
 }