This package automatically applies unix file permissions after the artisan make:
command.
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.
Copy configuration to config folder:
$ php artisan vendor:publish --provider="romanzipp\MakeFilePermissions\Providers\MakeFilePermissionsProvider"
return [
/**
* Enable the permission service
*/
'enabled' => env('MAKE_PERMISSIONS_ENABLED', true),
/**
* Apply the following permission
*/
'permission' => env('MAKE_PERMISSIONS', '600'),
/**
* Ignore commands
*/
'ignore' => [],
];