Skip to content

Commit

Permalink
fix: do not crash on routing error (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl authored and keeama13 committed Jan 11, 2024
1 parent 68f3f07 commit 6fde6e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/PageRouterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Exception;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Route;
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
use Mcamara\LaravelLocalization\Middleware\LaravelLocalizationViewPath;
Expand Down Expand Up @@ -50,7 +51,7 @@ private function setRouteList($routes)
if (isset($route->children) && isset($route->children[0])) {
$this->setPageAsRoute($route->children[0], true);
} else {
dd('No child route set for site');
Log::error('No child route set for site');
}

foreach ($route->children as $page) {
Expand Down

0 comments on commit 6fde6e5

Please sign in to comment.