$role = Role::find(1);
$perms = $role->perms();
echo $perms->name;
i have tried the code above but its return an error that says undefined property $name
Man i didn't use perms() because it returns the relation object. I used $role->perms without parenteses
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community