Laravel Community Tools by Tighten

Category "Eloquent" tricks

140 tricks
SharpAPI AI Translator for Laravel Nova – the package that’s here to make your content translation smoother and smarter with the power of SharpAPI's Advanced Text Translator AI API and to leverage AI for Laravel. This package extends the already-awesome Spatie's laravel-translatable with a Nova action you can trigger from your resource’s edit or list views. Details at https://github.com/sharpapi/nova-ai-translator
makowskid 1 year ago 7943
Automatically replace column with a translated value.
jesseyvano... 1 year ago 20738
Suppose you want to use Laravel query builder to search items in your db like this ?filter[search]=yourkeyword
SlimGee 1 year ago 11821
laravel globale search
hamdiantar 2 years ago 19857
Laravel Settings to create your website and model settings in an easy way, you can find all details about the package here: https://github.com/yazan-alnugnugh/laravel-settings
yazan-alnu... 3 years ago 44313
We have already known the usage of accessors and mutators. We use accessors in laravel model to modify any field data while retrieving the records and mutators to modify any field data while inserting to database. So, to modify any field before, we needed two separate methods for a single filed i.e. one method for accessor and one for mutator but in latest laravel release I mean in laravel 8.77.0, we can use a single method for both accessor and mutator using closure . Given below is the syntax for single mehtod accessor and mutator:
asifzcpe 4 years ago 34555
Disable Laravel's Eloquent timestamps
saravanaku... 4 years ago 29820
Easy command to create user with php artisan interactivlly
wallacemax... 4 years ago 24822
Easy way to create many filters aggregated in Eloquent with query string
wallacemax... 4 years ago 24175