We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b84b943 + 1df383c commit 513f140Copy full SHA for 513f140
src/resources/views/usersmanagement/edit-user.blade.php
@@ -108,7 +108,11 @@
108
<option value="">{{ trans('laravelusers::forms.create_user_ph_role') }}</option>
109
@if ($roles)
110
@foreach($roles as $role)
111
- <option value="{{ $role->id }}" {{ $currentRole->id == $role->id ? 'selected="selected"' : '' }}>{{ $role->name }}</option>
+ @if ($currentRole)
112
+ <option value="{{ $role->id }}" {{ $currentRole->id == $role->id ? 'selected="selected"' : '' }}>{{ $role->name }}</option>
113
+ @else
114
+ <option value="{{ $role->id }}">{{ $role->name }}</option>
115
+ @endif
116
@endforeach
117
@endif
118
</select>
0 commit comments