%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/nwidart/laravel-modules/src/ |
Upload File : |
<?php
use Illuminate\Foundation\Vite;
use Illuminate\Support\Facades\Vite as ViteFacade;
if (! function_exists('module_path')) {
function module_path($name, $path = '')
{
$module = app('modules')->find($name);
return $module->getPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);
}
}
if (! function_exists('config_path')) {
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/
function config_path($path = '')
{
return app()->basePath() . '/config' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
}
}
if (! function_exists('public_path')) {
/**
* Get the path to the public folder.
*
* @param string $path
* @return string
*/
function public_path($path = '')
{
return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);
}
}
if (! function_exists('module_vite')) {
/**
* support for vite
*/
function module_vite($module, $asset): Vite
{
return ViteFacade::useHotFile(storage_path('vite.hot'))->useBuildDirectory($module)->withEntryPoints([$asset]);
}
}