Laravel Community Tools by Tighten

Tag "view data" tricks

55 tricks
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 13267
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9591
Pagination with dots in laravel
wallacemax... 10 years ago 9780
Displaying different module/package dashboard widgets using view composers.
beanmoss 10 years ago 8853
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 6859
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 10 years ago 46630
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 10 years ago 97190
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22488
If you are using the same template in a lot of places and might later need an easy way to switch out the template for a different one without having to go through all views that implement it or replacing the current template, then consider using a constant to pass this parameter. Doing this will allow you to switch out your template for any other template at any time in nearly no time at all.
The Saint... 11 years ago 8452