Laravel Community Tools by Tighten

Tag "blade" tricks

44 tricks
cannot end a section without first starting one in new Laravel 5.3
shahmir811 9 years ago 11389
Simple breadcrumb which does not require anything more than a blade. Clone it from github [https://github.com/sina-rzp/laravel-simple-breadcrumb].
sina-rzp 9 years ago 7520
Learn how to make a function to easily test which menu items should be marked as active depending on which page you are currently viewing in your browser. Add class of active to bootstrap menu items on different pages. Wherever you need to apply an active class ( or any other class ) in order to make a menu item active depending on which page you are currently viewing, or for any other sort of functionality you might need, this is the way you can do it with Laravel ( or plain PHP just a bit differently ) Watch the video on how to do it https://www.youtube.com/watch?v=E1oit3sd-7k
Novica89 10 years ago 8870
I have some pages that I like to popup in an informative ajax modal as well as having their own page. However as those pages extend a layout within the template I was getting the whole page with layout in my modal. Using renderSections() was the solution. In the example below my template section was called 'content'
leoden 10 years ago 13306
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9624
This trait allows you to save any column from any model into a location within the storage directory to allow the column to be blade compilable with view()->file($model->getViewableColumnPath('column_name')); The trait
leemason 10 years ago 6892
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 10 years ago 46672
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 10 years ago 97230
Hi, I got the example by Dastan Turysbekov (http://laravelsnippets.com/snippets/menu-activated) and changed a little bit. It's a simple Macro to use with Active Menu. You can use parameters and attributes as well.
marcelofer... 11 years ago 9990