adepem/laravel-assets-upload

Upload your Laravel public directory to a filesystem with an artisan command
43,969
Install
composer require adepem/laravel-assets-upload
Latest Version:0.4.0
PHP:^7.4 || ^8.0
Laravel:10 – 13
License:MIT
Last Updated:Aug 6, 2021
Links: GitHub  ·  Packagist
Maintainer: sirdharma

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.

Related Packages

igaster/laravel-theme

Laravel Themes: Asset & Views folder per theme. Theme inheritance. Blade integra...

1,293,201 515
codesleeve/laravel-stapler

Easy file upload management for the Laravel Framework.

416,007 556
efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel >= 5.1 a...

11,444 13
tooleks/laravel-asset-version

The Laravel Assets Versioning Package

47,133 7
unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMC...

3,721,439 2,147

Version History

Version Released PHP License
0.4.0 ^7.4 || ^8.0 MIT
0.3.0 ^7.4 || ^8.0 MIT
0.2.0 ^7.4 || ^8.0 MIT
0.1.0 ^7.4 || ^8.0 MIT