romanzipp/laravel-make-file-permissions

Automatically apply unix file permissions after the 'artisan make:' command

1.3.1 2023-02-15 12:40 UTC

This package is auto-updated.

Last update: 2024-11-15 16:24:25 UTC


README

Latest Stable Version Total Downloads License

This package automatically applies unix file permissions after the artisan make: command.

Installation

composer require --dev romanzipp/laravel-make-file-permissions

If you use Laravel 5.5+ you are already done, otherwise continue.

romanzipp\MakeFilePermissions\Providers\MakeFilePermissionsProvider::class,

Add Service Provider to your app.php configuration file.

Configuration

Copy configuration to config folder:

$ php artisan vendor:publish --provider="romanzipp\MakeFilePermissions\Providers\MakeFilePermissionsProvider"

Config File

return [

    /**
     * Enable the permission service
     */
    'enabled' => env('MAKE_PERMISSIONS_ENABLED', true),

    /**
     * Apply the following permission
     */
    'permission' => env('MAKE_PERMISSIONS', '600'),

    /**
     * Ignore commands
     */
    'ignore' => [],
];