Support the ongoing development of Laravel.io →
Database Views Forms
Last updated 2 years ago.
0

@if($user->hasRole($role->id) true @endif is missing a parenthesis. Why not just do this as the third parameter to the Form::checkbox() method:

$user->hasRole($role->id)
0

Yeah, my error when I pasted this in, you were right using the suggested change to the 3rd parameter did it. I need to read more up on this..

Thank you.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

SCC-Lee scc-lee Joined 22 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.