Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel append to model

protected $appends = ['user'];
public function getUserAttribute()
{

    return $this->user();

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #append #model
ADD COMMENT
Topic
Name
6+5 =