mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Specify what asset() returns
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
ced9a91801
commit
837da1d411
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ public function boot()
|
|||
|
||||
If `config('app.asset_url')` has been set, the bootstrapper suffixes the configured asset URL the same way as `storage_path()` (useful if you're using Laravel Vapor or similar).
|
||||
|
||||
If `config('app.asset_url')` is null (as it is by default), `asset()` will return a URL pointing to the TenantAssetsController (`/tenancy/assets/...`) which returns a file response:
|
||||
If `config('app.asset_url')` is null (as it is by default), `asset()` will return the same output as `tenant_asset()` — a URL pointing to the TenantAssetsController (`/tenancy/assets/...`) which returns a file response:
|
||||
|
||||
```php
|
||||
// TenantAssetsController
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue