![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 46 Pomógł: 0 Dołączył: 3.05.2016 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Próbuje zrobić nadawanie roli dla użytkowników, postępowałem jak w tutorialach pokazane było ale niestety natrafilem na taki błąd: Call to undefined method Illuminate\Database\Schema\Blueprint::bool() Komunikat ten pokazuje się, gdy chce zrobic migracje. Model Role
Model User:
create_role_table
create_user_role_table
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 46 Pomógł: 0 Dołączył: 3.05.2016 Ostrzeżenie: (0%) ![]() ![]() |
juz poprawilem to:D
jednak faktycznie w baze danych do kalendarza mialem boola:) Ale teraz mam następny błąd: [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cann ot be null (SQL: insert into `user_role` (`role_id`, `user_id`) values (1, )) Zrobiłem coś takiego: $table->integer('user_id')->unsigned()->nullable(); Poszło, ale user_id wypelnia mi nullem, więc muszę dalej rozkminic o co be Dzięki za pomoc z tym boolem Ten post edytował K3n0 16.03.2017, 14:50:13 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 01:14 |