Fixed slug helper
This commit is contained in:
parent
99dee751f3
commit
7ec109c4d8
1 changed files with 1 additions and 1 deletions
|
@ -963,7 +963,7 @@ class AssetsController extends Controller
|
|||
foreach (Input::file('assetfile') as $file) {
|
||||
$extension = $file->getClientOriginalExtension();
|
||||
$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);
|
||||
|
||||
//Log the deletion of seats to the log
|
||||
|
|
Loading…
Add table
Reference in a new issue