Laravel 5.2 Zizaco/entrust Unable to survive database

Source: Internet
Author: User
Keywords laravel rbac php php Frame
Laravel Framework version 5.2.31 Follow the instructions on GitHub, step-by-step configuration, to execute PHP artisan migrate error:

[Illuminate\Database\QueryException]                                           SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table nam    e '' (SQL: alter table `role_user` add constraint `role_user_user_id_foreig    n` foreign key (`user_id`) references `` (`id`) on delete cascade on update     cascade)         [PDOException]                                                                 SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table nam    e ''    

View the tables in the database and create only the roles and role_user two tables!

Reply content:

Laravel Framework version 5.2.31 Follow the instructions on GitHub, step-by-step configuration, to execute PHP artisan migrate error:

[Illuminate\Database\QueryException]                                           SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table nam    e '' (SQL: alter table `role_user` add constraint `role_user_user_id_foreig    n` foreign key (`user_id`) references `` (`id`) on delete cascade on update     cascade)         [PDOException]                                                                 SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table nam    e ''    

View the tables in the database and create only the roles and role_user two tables!

Look here

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.