In dashboard.blade.php, I manage js library links.
So, as I don't want to include all libs in all pages, I do it like that:
@if (Request::is("mail/create"))
{!! Html::script('js/plugins/ui/nicescroll.min.js') !!}
{!! Html::script('js/sidebar_detached_sticky_custom.js') !!}
@endif
for each page or group of pages.
Thing is when I edit an item, I my URL have this format:
http://laravel.dev:8000/mail/1/edit
And as 1 is the shop Id and vary, my method doesn't work anymore....
Any way to fix my issue or to do it better???
Tx!