mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed slug helper
This commit is contained in:
parent
99dee751f3
commit
7ec109c4d8
|
@ -963,7 +963,7 @@ class AssetsController extends Controller
|
||||||
foreach (Input::file('assetfile') as $file) {
|
foreach (Input::file('assetfile') as $file) {
|
||||||
$extension = $file->getClientOriginalExtension();
|
$extension = $file->getClientOriginalExtension();
|
||||||
$filename = 'hardware-'.$asset->id.'-'.str_random(8);
|
$filename = 'hardware-'.$asset->id.'-'.str_random(8);
|
||||||
$filename .= '-'.Str::slug($file->getClientOriginalName()).'.'.$extension;
|
$filename .= '-'.str_slug($file->getClientOriginalName()).'.'.$extension;
|
||||||
$upload_success = $file->move($destinationPath, $filename);
|
$upload_success = $file->move($destinationPath, $filename);
|
||||||
|
|
||||||
//Log the deletion of seats to the log
|
//Log the deletion of seats to the log
|
||||||
|
|
Loading…
Reference in a new issue