Spatie / Laravel-Permission - Add a field to the "ROLES" table

1

I related the table "roles" with my table "company", that is, in the table "roles", I have the field "company_id", in the view, there are the necessary fields and the select of the company but when I want save the data, I get the following error: "The given role or permission should use guard web instead of Companies.

I do not understand why, because in the "roles" table, the word "web" is saved by default in the field guard_name.

    
asked by Joice Herrera 12.12.2018 в 20:48
source

0 answers