laravel dynamic attributes

Solutions on MaxInterview for laravel dynamic attributes by the best coders in the world

showing results for - "laravel dynamic attributes"
Kia
03 Apr 2018
1class User extends Eloquent {
2
3
4    public function getFullNameAttribute()
5    {
6        return $this->first_name.' '.$this->last_name;
7    }
8}
Jessica
09 Jun 2017
1$user = User::find(1);
2$user->full_name;