Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get data without pivot relation laravel

I recommend putting pivot inside models in the hidden array like in user.php:

protected $hidden = ['pivot'];
 
PREVIOUS NEXT
Tagged: #data #pivot #relation #laravel
ADD COMMENT
Topic
Name
4+1 =