akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

Issues with the "PHP Laravel Starter Bundle" #67

Open ActiveByte opened 4 years ago

ActiveByte commented 4 years ago

I'm having a few issues with the PHP Laravel Starter Bundle

  1. 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

  2. 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

  3. Where is the user list? there is supposed to be "Basic User Management"

Thanks in advance!

ActiveByte commented 4 years ago

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

ActiveByte commented 4 years ago

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,