Storage::url path
This commit is contained in:
parent
980a384b33
commit
8f7f781256
@ -38,6 +38,9 @@ class IdentifyCompany
|
|||||||
// Set company as current
|
// Set company as current
|
||||||
company($company_id)->makeCurrent();
|
company($company_id)->makeCurrent();
|
||||||
|
|
||||||
|
// Fix file/folder paths
|
||||||
|
config(['filesystems.disks.' . config('filesystems.default') . '.url' => url('/' . $company_id) . '/uploads']);
|
||||||
|
|
||||||
// Fix routes
|
// Fix routes
|
||||||
app('url')->defaults(['company_id' => $company_id]);
|
app('url')->defaults(['company_id' => $company_id]);
|
||||||
$request->route()->forgetParameter('company_id');
|
$request->route()->forgetParameter('company_id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user