Laravel Community Tools by Tighten

Tag "5.0" tricks

75 tricks
I don't personally use it, but some might find it useful. Laravel 5 paginator accepts a custom presenter for the paginator. In case you don't want to create a class or want to edit HTML directly, try the following trick.
moon0326 10 years ago 6910
5.0
Auth::attempt($auth) giving problem. ErrorException in ClassLoader.php line 317: Uninitialized string offset: 0
Sanjar7 10 years ago 9855
5.0
Model Based Setting Different Connection when working with 2 or more database in laravel
dhrubo001 10 years ago 6835
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 16374
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 10 years ago 15099
5.0
Now you can deploy Larave 5 easily on Cloudways application hosting management platform. http://www.cloudways.com/en/laravel-hosting.php
yaniksilve... 10 years ago 8171
5.0
These are helper functions which allow you to write more concise router code:
imanghafoo... 10 years ago 9900
5.0
Set browser cache invalidation headers on a PER route basis using Route Middleware.
jhauraw 11 years ago 13504
Custom image dimensions validator for minimum height and width.
aglipanci 11 years ago 13006
5.0