1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 13:34:05 +00:00

Fix ArgumentCount exception on the TenantAssetsController when no $path is provided

This commit is contained in:
Bram Wubs 2022-07-12 12:03:18 +02:00
parent db9480f54e
commit 0db972384a
2 changed files with 21 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class TenantAssetsController extends Controller
$this->middleware(static::$tenancyMiddleware);
}
public function asset($path)
public function asset($path = null)
{
try {
return response()->file(storage_path("app/public/$path"));