1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:24:03 +00:00

Fix #1223 - Vite regression introduced on Laravel 9 in v3.8.3

This commit is contained in:
Samuel Štancl 2024-05-22 19:42:20 +02:00
parent 120b8bc4ae
commit 885179bf74

View file

@ -15,6 +15,9 @@ class Vite extends BaseVite // todo move to a different directory in v4
*/ */
protected function assetPath($path, $secure = null) protected function assetPath($path, $secure = null)
{ {
return $this->assetPathResolver ? ($this->assetPathResolver)($path, $secure) : global_asset($path); // In Laravel 9, the property doesn't exist.
return (isset($this->assetPathResolver) && $this->assetPathResolver)
? ($this->assetPathResolver)($path, $secure)
: global_asset($path);
} }
} }