Hi,
Yes, pretty much what @Demaestro said.
It's valid to retrieve the result of the builder, but I would not advise since you loose chain options later on.
Hi,
Yes, pretty much what @Demaestro said.
It's valid to retrieve the result of the builder, but I would not advise since you loose chain options later on.
Hi,
The double index.php hit is normal under the circumstances, once you enter .dev and second time you are being redirected to /en.
Please, explain the part about not finding it.
Thanks.
@pavsid ah lol, sry I thought it's still not working for you. Great that it does
@fredmj that is expected from Laravel to point your docroot to public folder of Laravel (Asgard). Good you solved that for yourself.
@pavsid So you are having this same issue when your project on a production server?
Unless you are using something strange to develop then no it should be fine as this. (For example windows lamp or anything like that).
@pavsid Just make a custom module, always try to restrain from editing core modules, so you don't have to worry about updating project.
Hey, @pavsid.
Yeah, this sux with Stylist HTMLbuilder there's good method that is protected
Here's helper function that can do whats protected:
// usage: relativeThemeAssetUrl('assets/css');
function relativeThemeAssetUrl($url)
{
$theme = \Stylist::current();
if ($theme) {
$themePath = $theme->getAssetPath();
$url = "themes/$themePath/$url";
return $url;
}
return false;
}
Hello, @rcorrino
You would probably want to split your logic into modules(on paper) - (most likely your logic already uses some namespace separation).
Then basically you would generate plain module (with entity names you already have) using scaffold command and insert your stuff 1 by 1.
There's no easy way just to drop in and go.
You should start on doing this then we can assist you with any details you are missing etc.
Thanks.
Hello,
So to register shortcut for presenter you would add it to config/menus.php
of laravel-menus
package.
<?php
return [
'styles' => [
'navbar' => \Nwidart\Menus\Presenters\Bootstrap\NavbarPresenter::class,
'navbar-right' => \Nwidart\Menus\Presenters\Bootstrap\NavbarRightPresenter::class,
'nav-pills' => \Nwidart\Menus\Presenters\Bootstrap\NavPillsPresenter::class,
'nav-tab' => \Nwidart\Menus\Presenters\Bootstrap\NavTabPresenter::class,
'sidebar' => \Nwidart\Menus\Presenters\Bootstrap\SidebarMenuPresenter::class,
'navmenu' => \Nwidart\Menus\Presenters\Bootstrap\NavMenuPresenter::class,
'my-custom_style' => \App\Presenters\ZurbMenuPresenter::class,
],
'ordering' => false,
];
After that you should be able to use it right away.
Try to clear caches and all that jazz.
I'm using multiple custom presenters myself and they are working just fine.
The default_menu_presenter
also works for me.