Skip to content

Instantly share code, notes, and snippets.

@jxlwqq jxlwqq/admin.php
Last active Dec 25, 2018

Embed
What would you like to do?
Create upload path based on current year and month
<?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
You can’t perform that action at this time.