Basset not work for multi-tenancy structure #1234
-
|
In a multi-tenancy project, I recently upgraded the backpack to v6, but I have no idea how to configure APP_URL in env file. Since each tenant has a different URL, so packages cannot be loaded using basset. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
🚨 Bot is not sure about this answer. Please verify. 🚨 Based on the information provided in the knowledge sources, I don't have a specific solution for configuring Basset in a multi-tenancy structure with Backpack v6. However, I can offer some insights and suggestions:
Given the complexity of this issue and the lack of direct information about multi-tenancy support in Backpack v6 with Basset, I would recommend:
Remember to thoroughly test any solution you implement, as asset loading is crucial for the proper functioning of the Backpack admin panel. Relevant sources: Github Issue (closed): [Bug] Backpack Assets 404 if APP_URL is set and doesn't match to actual URL |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @ben-cheng565 for sharing this information. I will close the issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.

Hey @karandatwani92 , I am glad to share it to help others with a similar case.
Step 1, Run the command to generate the basset config file if it does not exist
php artisan vendor:publish --provider="Backpack\Basset\BassetServiceProvider"Then change 'disk' => env('BASSET_DISK', 'public') to 'disk' => env('BASSET_DISK', 'basset')
Step 2, Add basset to the disks array in the filesystems.php
Step 3,…