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 13373
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9690
Pagination with dots in laravel
wallacemax... 10 years ago 9886
Displaying different module/package dashboard widgets using view composers.
beanmoss 11 years ago 8932
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 6960
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 11 years ago 46756
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 11 years ago 97299
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22626
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 8570