Laravel Community Tools by Tighten

Category "Views" tricks

71 tricks
Learn how to power your Laravel application so that you are using ajax alongside Laravel pagination to fetch new content ( posts or whatever entity you need to display ), without refreshing the page. Video tutorial -> https://www.youtube.com/watch?v=3cmbkEQG8is
Novica89 10 years ago 10071
This Trait helps you to pass "variables" anywhere in controllers to "view" . you can use "$this->view->..." in controller to pass your variables , also you can use "$this->view()" same as "view()" helper with same functionality to render the view . ( this package is made by larabook.ir)
hpakdaman 10 years ago 14685
A couple of view creators that inject variables or text into views
davestewar... 10 years ago 7193
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 13240
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9547
Pagination with dots in laravel
wallacemax... 10 years ago 9755
Session time out for logged in user (middleware way) for prevent dashboard or ... access after specify time. if we use this middleware in route groups, it will be run on every request under route group. with this code we do not need to change php.ini file or laravel session config file and default settings are appropriate. Do not forget to register middleware in app\Http\Kernel : 'timeout' => 'App\Http\Middleware\SessionTimeout', Other notices: 1- we can use middleware paramaters in laravel 5.1 for custom conditions. 2- we must redirect user back (after session timeout and log out ), to prevent user navigate to come back. 3- we must show a message to user (after session timeout and log out), that you logged out after [20] minutes that you were not active. Our Persian web app for time management is: https://timenix.com If you have a better idea please comment it. ♥
ivahidmont... 10 years ago 87465
Displaying different module/package dashboard widgets using view composers.
beanmoss 10 years ago 8829
Blade's path syntax is a little odd - it uses dots instead of slashes, and always requires you to start your paths from the views root. This Blade extension allows you to pass paths with slashes, and correctly resolves parent paths via the traditional ../ syntax. Lastly, the quoting of paths is optional.
davestewar... 10 years ago 11652