Laravel Community Tools by
Tighten
Laravel Versions
PHP Releases
Nova Packages
Laravel Tricks
Forge Recipes
Toggle navigation
Log in
Log in
Muhammed ElFeqy
Joined:
4 years ago
Total tricks:
1
Last trick:
4 years ago
Submitted tricks
Eloquent
Add custom columns to models
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
4 years ago
15743
eloquent