Field guard_name doesn't have a default value #2232
Unanswered
Ahmed-AESoliman
asked this question in
Q&A
Replies: 1 comment
-
Did you try deleting config cache on server? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i'm trying create role and assign permission
and it's everything work good when using localhost but when upload the app on server get error Field guard_name doesn't have a default value i'm trying adding by default like this
$table->string('guard_name')->default(config('auth.defaults.guard'));
role is created role put didn't assign the permissions
and when trying adding like this
$table->string('guard_name')->default('sanctum');
get error "The given role or permission should use guard `` instead of
sanctum
."note:
Beta Was this translation helpful? Give feedback.
All reactions