Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel appends child when referencing it in attribute function

return Parent::find($id)->append('grand_children_names')->makeHidden('child');
 
PREVIOUS NEXT
Tagged: #Laravel #appends #child #referencing #attribute #function
ADD COMMENT
Topic
Name
1+4 =