Laravel Community Tools by Tighten

Recent tricks

458 tricks
This piece of middleware can be applied at a global level, or on a per-route basis. The idea is that instead of polluting your databases with HTML and other potentially damaging data as a result of user input, this middleware will immediately strip all tags from any input, before it gets to validation or saved to a database. The result? A more dependable solution that doesn't require developer memory to implement safe output rules + cleaner data in your database.
kirkbushel... 10 years ago 16401
5.0
If you want to use Sentry 2 filters used in Laravel 4.x, you have to modify your system a little bit. <br/> First install Sentry 2 for Laravel 5: "composer require cartalyst/sentry:dev-feature/laravel-5" Next add these three files to your App\Http\Middleware folder, then add the references into the Kernel.php file. Finally, I added an example route how to use the Middlewares. An advice: in your controller replace all catch() lines from: catch (Cartalyst\Sentry\Users\LoginRequiredException $e) {} to: catch (\Cartalyst\Sentry\Users\LoginRequiredException $e) {} because it won't work as in Laravel 4.x worked..
subdesign 11 years ago 15131
5.0
Now you can deploy Larave 5 easily on Cloudways application hosting management platform. http://www.cloudways.com/en/laravel-hosting.php
yaniksilve... 11 years ago 8185
5.0
These are helper functions which allow you to write more concise router code:
imanghafoo... 11 years ago 9918
5.0
Set browser cache invalidation headers on a PER route basis using Route Middleware.
jhauraw 11 years ago 13532
Switching Maintenance Mode to Production And Vice Versa Quickly in laravel 4.2
dhrubo001 11 years ago 8502
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22504
Custom image dimensions validator for minimum height and width.
aglipanci 11 years ago 13027
5.0
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 38359