Laravel Community Tools by Tighten

Recent tricks

459 tricks
You can filter by NULL in Eloquent, but if you're filtering the collection further - filter by empty string, there's no "null" in that field anymore.
fatihtopra... 5 years ago 15507
This method list out all the registered middleware in laravel
sanjok1988 5 years ago 22665
Laravel 8 has a nice feature secret route for maintenance bypass. You can get this feature in Laravel 6 or laravel 6 with a simple package called haruncpi/laravel-maintenance.
haruncpi 5 years ago 17775
cli
You can unguard all your Models instead of setting the protected guarded variable to an empty array in each App\Models\YourModel class using Model::unguard() in the boot method of AppServiceProvider class.
berto309 5 years ago 24871
if you want to run custom validation having a long function in laravel request file, you can use the following tricks to get the things done using withValidator method.
asifzcpe 5 years ago 21275
5.5
Monitor user activity on laravel application with Laravel user activity package. It has build-in beautiful responsive & user-friendly UI with various useful features.
haruncpi 5 years ago 19050
Laravel package to let you manage de-normalized tables with simple configurations. Just add array based config in your models and it will automatically sync your denormalized tables. https://github.com/tkeer/flattable
tkeer 5 years ago 15436
Extends the native Laravel Http Client, so that you can define global options https://github.com/smokills/laravel-http-client-default-options
smokills 5 years ago 19563
You can use for forelse loop in your application.
techmahedy 6 years ago 18556