mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
607 B
607 B
| title | extends | section |
|---|---|---|
| Laravel Sail integration | _layouts.documentation | content |
Laravel Sail
Sail can only perform the create, read, update and delete operations in the central database by default. To give Sail permission to also perform these operations in tenant databases, log in to Sail's MySQL shell as the root user (docker-compose exec mysql bash, then mysql -u root -p – by default, the password is password) and grant the sail user access to all databases by running the following statements:
GRANT ALL PRIVILEGES on *.* to 'sail'@'%';
FLUSH PRIVILEGES;