I'm trying to develop a small control panel for admin to distribute roles to other users, the thing is my code doesn't show me any error but at the same time it doesn't affect any roles to other users. it stays just the same way,
my control panel is based on an automatic submit method whenever i check the role for a specific user or uncheck it.
My view addmin.blade.php code that contains control panel is;
I'm trying to develop a small control panel for admin to distribute roles to other users, the thing is my code doesn't show me any error but at the same time it doesn't affect any roles to other users. it stays just the same way, my control panel is based on an automatic submit method whenever i check the role for a specific user or uncheck it.
My view addmin.blade.php code that contains control panel is;
web.php contains the route add-role below:
addRole method in PostsController implements the code below:
I can't find the error when laravel doesn"t detect the details of it, any help would be appreciated alot, any ideas would be appreicated alot!