qtran2015/storage-dir
最新稳定版本:1.2.0
Composer 安装命令:
composer require qtran2015/storage-dir
包简介
Manipulate directories in storage directory
README 文档
README
Laravel package - to create new directory in the storage directory
install
composer require qtran2015/storage-dir
add to config/app.php Application Service Providers
Qtran2015\StorageDir\StorageDirProvider::class
clear cache
php artisan optimize:clear
usage response statuses
exists | created | failed
default read execute
$response = \Qtran2015\StorageDir\StorageDir::setDir('test1/dir_1/dir_2')->execute();
read write execute
$response = \Qtran2015\StorageDir\StorageDir::setDir('test2/dir_1/dir_2')
->fullAccess()
->execute();
remove full access from a directory from provided path
$response = \Qtran2015\StorageDir\StorageDir::setDir('test2/dir_1/dir_2/dir_3')
->removeFullAccessDir('dir_1')
->execute();
give full access to a directory from provided path
$response = \Qtran2015\StorageDir\StorageDir::setDir('test1/dir_1/dir_2')
->giveFullAccessDir('dir_2')
->execute();
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-21