You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the first block of code you have, your Menu structure. Did you try adjusting the $menu->add to always include 'target' => '_blank'? Maybe $menu['new_window'] is false or a falsey value. Like...
To see if that will create the attribute you are looking for?
--
For your second question, the $item->children() will pass the attributes with those child items. You could also add another value in the array and pass the link attribute directly. Like...
Hi,
I'm trying to call the "_blank" on my laravel blade file:
Here's my Menu structure:
How can I call and set the
<a>
to have<a target="_blank">
?Here's my Blade file:
I could do the below, but maybe there's something better?
Thank you.
The text was updated successfully, but these errors were encountered: