public static function addToVueRoute($adminVueRoutesPath, $adminJs = 'assets/js/entries/admin.js')
    {
        $adminEntryPath = resource_path($adminJs);
        $adminEntryFile = file_get_contents($adminEntryPath);
        if (!str_contains($adminEntryFile, $adminVueRoutesPath)) {
            Utils::replaceFilePlaceholders($adminEntryPath, [
                '// Modules routes' => '  ' . $adminVueRoutesPath . ",\n" . '// Modules routes'
            ], null, '');
        }
    }
public static function addToVueRoute($adminVueRoutesPath, $adminJs = 'assets/js/entries/admin.js')
    {
        $adminEntryPath = resource_path($adminJs);
        $adminEntryFile = file_get_contents($adminEntryPath);
        if (!str_contains($adminEntryFile, $adminVueRoutesPath)) {
            Utils::replaceFilePlaceholders($adminEntryPath, [
                '// Modules routes' => '  ' . $adminVueRoutesPath . ",\n" . '// Modules routes'
            ], null, '');
        }
    }
public static function addToVueRoute ( $ adminVueRoutesPath , $ adminJs = 'assets/js/entries/admin.js' ) { $ adminEntryPath = resource_path ( $ adminJs ) ; $ adminEntryFile = file_get_contents ( $ adminEntryPath ) ; if ( ! str_contains ( $ adminEntryFile , $ adminVueRoutesPath ) ) { Utils :: replaceFilePlaceholders ( $ adminEntryPath , [ '// Modules routes' => '  ' . $ adminVueRoutesPath . ",\n" . '// Modules routes' ] , null , '' ) ; } }
Add vue route setting to admin JavaScript entry file.
@param $adminVueRoutesPath
@param string $adminJs
Add vue route setting to admin JavaScript entry file .