what does the parent key parameter in morphtomany laravel used for code example
Example: eloquent relationships
$roles = App\User::find(1)->roles()->orderBy('name')->get();
$roles = App\User::find(1)->roles()->orderBy('name')->get();