public function findOrThrowException($id) { $order = Order::find($id); if (!is_null($order)) { return $order; } throw new GeneralException(trans('exceptions.backend.article.not_found')); }