mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Made logo file have a better name for multiple tries in the same day
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
42fe1ea398
commit
d54acd908c
|
@ -413,7 +413,7 @@ class SettingsController extends Controller
|
|||
if ($request->hasFile('logo')) {
|
||||
$image = $request->file('logo');
|
||||
$ext = $image->getClientOriginalExtension();
|
||||
$setting->logo = $file_name = 'logo-.'.date('Y-m-d').'.'. $ext;
|
||||
$setting->logo = $file_name = 'logo-'.date('U').'.'. $ext;
|
||||
|
||||
if ('svg' != $image->getClientOriginalExtension()) {
|
||||
$upload = Image::make($image->getRealPath())->resize(null, 150, function ($constraint) {
|
||||
|
|
Loading…
Reference in a new issue