/**
  * {@inheritdoc}
  *
  * @return \Illuminate\Database\Eloquent\Builder
  */
 protected function newQuery()
 {
     $query = parent::newQuery();
     if ($this->onlyTrashed === true) {
         $query->onlyTrashed();
     }
     if ($this->withTrashed === true) {
         $query->withTrashed();
     }
     return $query;
 }
 /**
  * Remove the specified model from storage.
  *
  * @param  int      $model_id
  * @return Response
  */
 public function destroy($model_id)
 {
     $this->repository->deleteById($model_id);
     return ['success' => true];
 }