Laravel Community Tools by Tighten

Popular 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... 11 years ago 16556
5.0
Laravel H is a helper package for Laravel Framework. GitHub: https://github.com/haruncpi/laravel-h
haruncpi 5 years ago 16517
When you have a model with unique value column and tries seeder your table using a big amout, sometimes the QueryException is thrown, because Faker doesn't know what values was previously generated and the number of combinations is limited.
lcdss 10 years ago 16379
Change email configuration on the fly.
aglipanci 11 years ago 16295
4.2
The example doesn't cover every single aspect, but the very major things.
Mahmoudz 11 years ago 16257
5.0
Bumped into a problem while trying to authorize user against laravel basic auth middleware when testing a REST API through phpunit. I used phpunit call method to send a POST request to API's endpoint which needed users basic HTTP authentication. Every time, laravels basic auth middleware rejected it and I had no idea why, since I've sent proper HTTP Authorization header with phpunit call. Here is the solution ! Or watch it in a video https://www.youtube.com/watch?v=LCrt7jqDsgU Read more on http://laravel.io/forum/03-20-2014-authbasic-fails
Novica89 10 years ago 16172
Change the created_at, updated_at and deleted_at column names (deleted_at not working @ Laravel 4.2)
seriousfre... 12 years ago 16137
4.1
Laravel scheduler is a nice feature of the Laravel framework but most of the developer can't setup cronjob for running the laravel schedule on shared hosting. Here I am giving a snippet for running laravel cronjob on shared hosting. For more detail: http://bit.ly/laravel-scheduler
haruncpi 6 years ago 16115
Using laravel eloquent, you have an amazing feature called `Accessors`, which allows you to define a non-existing column, here's an example to get user full_name that does not exist in the users table
thefeqy 5 years ago 16044