laravel-8-roles-and-permissions
laravel-8-roles-and-permissions copied to clipboard
BadMethodCallException
Call to undefined method App\Models\User::getRoleNames() (View: C:\xampp\htdocs\blog\resources\views\users\index.blade.php)
i could not find where you write getRoleNames() function
please define
in the users index there is an function being called which does not exit in the user controller that is why the erorr is given