demo.laravel-admin.org
demo.laravel-admin.org copied to clipboard
create new menu
QueryException In Connection.php line 664 :
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'menu_id' cannot be null (SQL: insert into admin_role_menu
(menu_id
, role_id
) values (, 1))
Expand Collapse
also "data from api" menu items not work,
create new user
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null (SQL: insert into admin_role_users
(role_id
, user_id
) values (1, ))
same issue about create new user above
@martinym28 I install this and problem gone. https://github.com/z-song/laravel-admin and then install all helper and config it manaully https://packagist.org/packages/laravel-admin-ext/
Need help! The problem did not go away! ("encore/laravel-admin": "^1.5" - v1.5.6) Other versions also tried.
/app/Providers/AppServiceProvider.php
`<php class AppServiceProvider extends ServiceProvider { public function boot() {
// The reason for all problems with saving. /*************************************** $callback = function () { return false; }; Menu::saving($callback); Role::saving($callback); Permission::saving($callback); Administrator::saving($callback);
Menu::deleting($callback);
Role::deleting($callback);
Permission::deleting($callback);
Administrator::deleting($callback);
*/ } } `