wychoong/laravel-view-extract

This package helps to extract view from vendor package using artisan command

v0.1.2 2023-04-04 16:04 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package helps to extract view from vendor package using artisan command

Installation

You can install the package via composer:

composer require wychoong/laravel-view-extract

You can publish the config file with:

php artisan vendor:publish --tag="view-extract-config"

This is the contents of the published config file:

return [
    /**
     * Exclude views when resync views (when using sync all)
     */
    'exclude' => [
        // 'namespace::foo.bar.blade-name'
    ],

    /**
     * Only sync these views (when using sync all)
     *     - `only` take priority over `exclude
     *     - if same view listed in `exclude` it will still be excluded
     */
    'only' => [
        // 'namespace::foo.bar.blade-name'
    ],
];

Usage

# Extract view from vendor
php artisan view:extract {view} {--force}

# Sync extracted views from vendor
php artisan view:sync {namespace?} {--check}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.