Fixed slug helper

This commit is contained in:
snipe 2016-03-25 03:32:35 -07:00
parent 99dee751f3
commit 7ec109c4d8

View file

@ -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