Composer script handling directories permissions
Run the below command to install the plugin
composer require idnan/composer-permission
And then put the below configuration in your composer.json file
{
...
"scripts": {
"post-install-cmd": [
"Idnan\\ComposerPermission\\Handler::setPermissions"
]
},
"extra": {
"dir_permissions": ["app/strorage:0777"]
}
}
Where replace app/storage
with the relative path for which permissions is to be changed and 0777
with the permission that you may want. You can pass any permission as long as it is accepted by chmod.
- Report issues
- Open pull request with improvements
- Features Suggestions
- Reach out to me directly at [email protected] or
MIT © Adnan Ahmed