Skip to content

Upload your Laravel public directory to a filesystem with an artisan command

Notifications You must be signed in to change notification settings

adepem/laravel-assets-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish your assets using an artisan command

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Installation

You can install the package via composer:

composer require adepem/laravel-assets-upload

You can publish the config file with:

php artisan vendor:publish --provider="Adepem\AssetsUpload\AssetsUploadServiceProvider" --tag="assets-upload-config"

This is the contents of the published config file:

return [
    'filesystem' => env('ASSETS_UPLOAD_FILESYSTEM', false),

    'cache-control' => [
        'css' => env('ASSETS_UPLOAD_CACHE_CONTROL_CSS', 604800), // 7 days
        'js' => env('ASSETS_UPLOAD_CACHE_CONTROL_JS', 604800), // 7 days
        'woff2' => env('ASSETS_UPLOAD_CACHE_CONTROL_WOFF2', 31536000), // 365 days
    ],

    'directories' => [
        'public/css',
        'public/js',
    ]
];

Usage

php artisan assets:upload

Testing

composer test

Changelog

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

Credits

License

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

About

Upload your Laravel public directory to a filesystem with an artisan command

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages