demo.laravel-admin.org icon indicating copy to clipboard operation
demo.laravel-admin.org copied to clipboard

create new menu

Open miadz opened this issue 7 years ago • 6 comments

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

miadz avatar Oct 14 '17 21:10 miadz

also "data from api" menu items not work,

miadz avatar Oct 14 '17 21:10 miadz

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, ))

miadz avatar Oct 14 '17 23:10 miadz

same issue about create new user above

martinym28 avatar Oct 31 '17 05:10 martinym28

@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/

miadz avatar Oct 31 '17 19:10 miadz

Need help! The problem did not go away! ("encore/laravel-admin": "^1.5" - v1.5.6) Other versions also tried.

2017-11-10 18 04 02 2017-11-10 18 05 29 2017-11-10 18 08 03

Hige avatar Nov 10 '17 15:11 Hige

/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);

*/ } } `

Hige avatar Nov 16 '17 13:11 Hige