mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
Fix #1223 - Vite regression introduced on Laravel 9 in v3.8.3
This commit is contained in:
parent
120b8bc4ae
commit
885179bf74
1 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,9 @@ class Vite extends BaseVite // todo move to a different directory in v4
|
|||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue