mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Update 'is not set' to 'is null'
This commit is contained in:
parent
71036c6702
commit
07db1417e0
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ If `config('app.asset_url')` is null (as it is by default), `asset()` will retur
|
||||||
return response()->file(storage_path('app/public/' . $path));
|
return response()->file(storage_path('app/public/' . $path));
|
||||||
```
|
```
|
||||||
|
|
||||||
When `config('app.asset_url')` is not set, **you need to store the assets in your tenant's `app/public/` directory**. So for non-private (global) assets, you may want to create a disk and use URLs from that disk instead (don't add that disk to `config(tenancy.filesystem.disks)`). For example:
|
When `config('app.asset_url')` is null, **you need to store the assets in your tenant's `app/public/` directory**. So for non-private (global) assets, you may want to create a disk and use URLs from that disk instead (don't add that disk to `config(tenancy.filesystem.disks)`). For example:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
Storage::disk('app-public')->url('tenants/logos/' . tenant()->id . '.png');
|
Storage::disk('app-public')->url('tenants/logos/' . tenant()->id . '.png');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue