Laravel Community Tools by Tighten

Tag "blade" tricks

45 tricks
X-editable allows you to create editable elements on your page. It can be used with any engine (bootstrap, jquery-ui, jquery only) and includes both popup and inline modes. Let's have a quick look at implementing this in Laravel apps.
baqirfaroo... 9 years ago 13384
cannot end a section without first starting one in new Laravel 5.3
shahmir811 9 years ago 11665
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 7698
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 9090
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 13495
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 11 years ago 9829
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 11 years ago 7065
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 11 years ago 46923
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 11 years ago 97486