My controller is
public function index()
{
$users = User::paginate(15);
return view('dash.users.index')->with(array('users' => $users));
}
in view i pass: {{ $item->roles }}
and return all column as array, if i put {{ $item->roles->get('name') }}
the table is blank, why?
I want to show user->roles->name foreach user