-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This page is normally a backend page The logic is located there twill/src/TwillServiceProvider.php Lines 645 to 653 in dc08371 Normally it is only displayed if isTwillRequest is true (so usually if you are in /admin/something), but those are blade views, so you can also override them if you want. You can also catch the error before it arrives to twill in your own exception handler public function render($request, Throwable $e)
{
$response = parent::render($request, $e);
if ((! config('app.debug') || $e instanceof HttpException) && in_array($response->status(), [500, 503, 404, 403, 401])) {
$params = ['status' => $response->status()];
if ($e instanceof InvalidSignatureException) {
$params = ['special' => 'signature'];
}
return view(/* Your own error view here */, $params)
}
return $response;
} |
Beta Was this translation helpful? Give feedback.
-
|
This was the reason; Lines 412 to 414 in dc08371 The solution; ADMIN_APP_STRICT=true |
Beta Was this translation helpful? Give feedback.

This was the reason;
I was using a sub-domain for admin and this
twill.admin_app_strictconfig is set to false by default. This is why all urls/routes were consider as "Twill Route". Setting this totruein.envsolved my issue, now I am getting Laravel's default error pages in FE and Twill Error pages in Admin Area.twill/src/TwillRoutes.php
Lines 412 to 414 in dc08371
The solution;
To enable s…