Storage::url path

This commit is contained in:
Cüneyt Şentürk 2021-04-21 09:18:45 +03:00
parent 980a384b33
commit 8f7f781256

View File

@ -38,6 +38,9 @@ class IdentifyCompany
// Set company as current
company($company_id)->makeCurrent();
// Fix file/folder paths
config(['filesystems.disks.' . config('filesystems.default') . '.url' => url('/' . $company_id) . '/uploads']);
// Fix routes
app('url')->defaults(['company_id' => $company_id]);
$request->route()->forgetParameter('company_id');