Search code examples
laravelormmodel

There Are Any Difference at Timing When Select Data By ORM Laravel 6 Using This Two Ways?


$user->follows

or That

$user->follows()

Timeline Method That Return Data To View


Solution

  • The difference is $user->follows call an object from data and $user->follows() call a model method.