Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel relationship

$model->relation; // result of the relation, ie. null/model for x-1 relations or collection for x-m
$model->relation(); // relation object
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #relationship
ADD COMMENT
Topic
Name
8+9 =