Salah3id /
address-domains
| 1 | <?php |
||||
| 2 | |||||
| 3 | use Illuminate\Foundation\Vite; |
||||
| 4 | use Illuminate\Support\Facades\Vite as ViteFacade; |
||||
| 5 | |||||
| 6 | if (! function_exists('domain_path')) { |
||||
| 7 | function domain_path($name, $path = '') |
||||
| 8 | { |
||||
| 9 | $domain = app('domains')->find($name); |
||||
| 10 | |||||
| 11 | return $domain->getPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
||||
| 12 | } |
||||
| 13 | } |
||||
| 14 | |||||
| 15 | if (! function_exists('config_path')) { |
||||
| 16 | /** |
||||
| 17 | * Get the configuration path. |
||||
| 18 | * |
||||
| 19 | * @param string $path |
||||
| 20 | * @return string |
||||
| 21 | */ |
||||
| 22 | function config_path($path = '') |
||||
| 23 | { |
||||
| 24 | return app()->basePath() . '/config' . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
||||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||||
| 25 | } |
||||
| 26 | } |
||||
| 27 | |||||
| 28 | if (! function_exists('public_path')) { |
||||
| 29 | /** |
||||
| 30 | * Get the path to the public folder. |
||||
| 31 | * |
||||
| 32 | * @param string $path |
||||
| 33 | * @return string |
||||
| 34 | */ |
||||
| 35 | function public_path($path = '') |
||||
| 36 | { |
||||
| 37 | return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
||||
| 38 | } |
||||
| 39 | } |
||||
| 40 | |||||
| 41 | if (! function_exists('domain_vite')) { |
||||
| 42 | /** |
||||
| 43 | * support for vite |
||||
| 44 | */ |
||||
| 45 | function domain_vite($domain, $asset): Vite |
||||
| 46 | { |
||||
| 47 | return ViteFacade::useHotFile(storage_path('vite.hot'))->useBuildDirectory($domain)->withEntryPoints([$asset]); |
||||
|
0 ignored issues
–
show
The method
useBuildDirectory() does not exist on Illuminate\Support\Facades\Vite.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||
| 48 | } |
||||
| 49 | } |
||||
| 50 |