Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create new menu #2

Open
miadz opened this issue Oct 14, 2017 · 6 comments
Open

create new menu #2

miadz opened this issue Oct 14, 2017 · 6 comments

Comments

@miadz
Copy link

miadz commented Oct 14, 2017

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
Copy link
Author

miadz commented Oct 14, 2017

also "data from api" menu items not work,

@miadz
Copy link
Author

miadz commented Oct 14, 2017

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

@martinym28
Copy link

same issue about create new user above

@miadz
Copy link
Author

miadz commented Oct 31, 2017

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

@Hige
Copy link

Hige commented Nov 10, 2017

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
Copy link

Hige commented Nov 16, 2017

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

*/
}
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants