Laravel Community Tools by Tighten

Tag "filters" tricks

34 tricks
Laravel 5.4 Upload Image with Validation example
dave 8 years ago 21525
I'm using a pivot table on the project I'm working with to filter category
dickyeka 9 years ago 9418
Simple ACL laravel 5.2 Providers->AuthServiceProvider Register any application authentication / authorization services.
hendrilara 10 years ago 32239
I made a filter for Laravel 5.0 , you can redirect non-www URLs to www URL and you don't need to write any difficult htaccess codes . Just put the filter in routes.php and use it for any Routes you want them to be with WWW . This snipped code is made by www.larabook.ir
hpakdaman 10 years ago 16688
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 87751
Set browser cache invalidation headers on a PER route basis using Route Middleware.
jhauraw 11 years ago 13553
CSRF is enabled by default on all Routes in Laravel 5, you can disable it for specific routes by modifying app/Http/Middleware/VerifyCsrfToken.php
aglipanci 11 years ago 38395
I've put the full namespaces in for science.
orlissenbe... 11 years ago 8513
Filter for minify html output. Put this code into \app\filters.php
gulch 11 years ago 26532