You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create a new user an exception appear because in the moment to create rol select list page put name into value and text.
This will be fix if on UserController.php change the method create to
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$roles = Role::pluck('name','id')->all();
return view('users.create',compact('roles'));
}
The text was updated successfully, but these errors were encountered:
When I run the app. I dont see any exception/error when creating new user. Also the ID is fine, the next user ID is 2 (after I seed the admin).
Also when I put roles to the user, there is nothing error.
Perhaps you can show the step to create the user until error.
When create a new user an exception appear because in the moment to create rol select list page put name into value and text.
This will be fix if on UserController.php change the method create to
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$roles = Role::pluck('name','id')->all();
return view('users.create',compact('roles'));
}
The text was updated successfully, but these errors were encountered: