use Exception;
use IlluminateDatabaseQueryException;
try {
} catch (Exception $e) {
return $e->getMessage();
} catch (QueryException $e) {
return $e->getMessage();
}
use Throwable;
public function report(Throwable $exception);
public function render($request, Throwable $exception);