nirav77
Panel Path as {brand} prefix Parameter
$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 loaded7 replies
Panel Path as {brand} prefix Parameter
I need to dynamically create panel paths. That's why I've included the {brand_name} prefix in the panel path function.
Example URLs for brands:
http://localhost/nike/login
http://localhost/adidas/login
In my frontend, I have a route like http://localhost/blog, it will be considered as part of the brand panel due to the defined prefix. it will give me a 404 Not Found error
public function panel(Panel $panel): Panel
{
return $panel
->id('brand')
->path({brand_name})
->login()
->registration()
->passwordReset()
->sidebarCollapsibleOnDesktop();
}
7 replies