dingo / dingo/api

redirect wrong url after exception

Open
#1,127 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

After I installed dingo, `\App\Exceptions\Handler` can't work. But I need to do some redirect while some exceptions throw like below.

```
app('Dingo\Api\Exception\Handler')->register(function (CustomException $exception) {
$url = '';
return redirect($url);
});
```

But I the redirect have to redirect to a blank page with redirect infomation first, then redirect to where I want.

So, anybody know how to keep the normal redirect functions? I just want to redirect the url directly.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.