Panel Path as {brand} prefix Parameter
I have two panels: one is the default admin panel and the second is the brand panel. In the brand panel, I have defined the path as ->path('{brand_name}')
In the route file, if I put
it will give me a 404 Not Found error. This is because it will consider this route as part of the brand panel due to the defined prefix.
In the route file, if I put
Route::get('test', function () { return view('test'); });it will give me a 404 Not Found error. This is because it will consider this route as part of the brand panel due to the defined prefix.
Solution
$this->app->booting(function () {
$this->loadRoutesFrom(base_path('./routes/') . "web.php");
});This code worked for me. In the AppServiceProvider, I needed to load the Laravel route file before the package routes are loaded