Fixed slug call in asset models image

This commit is contained in:
snipe 2017-11-02 08:02:51 -07:00
parent 3343cf16dd
commit f43692938b

View file

@ -90,7 +90,7 @@ class AssetModelsController extends Controller
if (Input::file('image')) {
$image = Input::file('image');
$file_name = slug($image->getClientOriginalName()) . "." . $image->getClientOriginalExtension();
$file_name = str_slug($image->getClientOriginalName()) . "." . $image->getClientOriginalExtension();
$path = public_path('uploads/models/');
if ($image->getClientOriginalExtension()!='svg') {