app\Exceptions\Handler.php
public function render($request, Exception $exception)
{
if ($exception instanceof ModelNotFoundException) {
abort(404);
}
return parent::render($request, $exception);
}
You can catch / handle any exception that is thrown in Laravel.