stancl / tenancy-docs

stancl/tenancy docs & website
https://tenancyforlaravel.com/docs
MIT License
64 stars 626 forks source link

Real Time Facades: Deleting framework directories for tenants solution #277

Open michaelkonstantinou opened 3 months ago

michaelkonstantinou commented 3 months ago

In Real Time Facades section, there is already the solution given for Adding the framework directories

However. Once the Tenant is deleted, one should also make sure that the framework directories are deleted. Otherwise you will stay with leftover files

Hence, In this PR I added a small section on how one can delete the framework directories when the Tenant is deleted.

PS: I think this could be useful not only in the docs but perhaps as a complete solution that can be toggled on/off from the config file. Let me know if such solution would interest you, perhaps I can open a PR on the main repository