Specify what asset() returns

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
lukinovec 2022-09-27 14:15:47 +02:00 committed by GitHub
parent ced9a91801
commit 837da1d411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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