ngx-admin-bundle-support
ngx-admin-bundle-support copied to clipboard
Issues with the "PHP Laravel Starter Bundle"
I'm having a few issues with the PHP Laravel Starter Bundle
-
When i'm trying to edit a user while having admin permissions i get the following error and data is not loaded into the fields:
ERROR TypeError: Cannot read property 'toString' of undefined
Visited url: http://website.be/pages/users/edit/1 -
Error when trying to add user:
POST https://website.be/admin/backend/public/api/users 422 (Unprocessable Entity)
Visited url: http://website.be/pages/users/add -
Where is the user list? there is supposed to be "Basic User Management"
Thanks in advance!
When i manually load a profile in i get this error
Request URL: https://website.be/admin/backend/public/api/users/2 Request Method: GET Status Code: 500 Internal Server Error Remote Address: ******* Referrer Policy: no-referrer-when-downgrade
curl -X GET "https://website.be/admin/backend/public/api/users/1" -H "accept: application/json" -H "Authorization: Bearer authkey" { "message": "Too few arguments to function App\\Policies\\UserPolicy::view(), 1 passed in /data/sites/web/menuoptwebbe/www/admin/backend/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php on line 706 and exactly 2 expected", "exception": "Symfony\\Component\\Debug\\Exception\\FatalThrowableError", "file": "/data/sites/web/menuoptwebbe/www/admin/backend/app/Policies/UserPolicy.php", "line": 31,