1$roles = User::find(1)->roles;
2#this works perfectly fine
3#But if you retrieve data with 'where()' and 'get()'..
4#then the result is a collection rather than a single item
5
6$users = User::where('Last_name', 'specter')->get();
7$roles = $users[0]->roles;
8