Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

hasmany relationship with created at in laravel example

return $this->hasMany('AppComment', 'foreign_key');

return $this->hasMany('AppComment', 'foreign_key', 'local_key');
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #hasmany #relationship #created #laravel
ADD COMMENT
Topic
Name
9+5 =