romanzipp / laravel-make-file-permissions
Automatically apply unix file permissions after the 'artisan make:' command
Fund package maintenance!
romanzipp
Requires
- php: ^7.2|^8.0
- illuminate/console: ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^0.12.99|^1.0
- romanzipp/php-cs-fixer-config: ^3.0
README
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' => [], ];