eriktobben's avatar

Spatie Laravel-permission: Schema Limitation in MySQL

Hi!

I am working on an e-commerce app and is looking at Spatie's package Laravel-permission.

In the prerequisite there is a section for "Schema Limitation in MySQL", where I have to set defaultStringLength to 125 because of the index. Will doing so cause any issues further down the line when restricting the max length for strings in the database? Is there a reason we have to do it like this, instead of doing it on the columns it affects in the migrations from the package?

I am also wondering if I can use this package for both backend users and customers? What I mean by that is using the same package for handling permission for backend staff, and also frontend customers?

Link to prerequisites: https://spatie.be/index.php/docs/laravel-permission/v5/prerequisites

0 likes
1 reply

Please or to participate in this conversation.