Last active
June 3, 2023 19:05
-
-
Save jxlwqq/788470f94ae6cf8823a33fc12bfae94a to your computer and use it in GitHub Desktop.
Create upload path based on current year and month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Laravel-admin upload setting | |
|-------------------------------------------------------------------------- | |
| | |
| File system configuration for form upload files and images, including | |
| disk and upload path. | |
| | |
*/ | |
'upload' => [ | |
'disk' => 'public', | |
'directory' => [ | |
'image' => 'images/'.date('Y/m'), | |
'file' => 'files/'.date('Y/m') | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment