public function moveFile($file, $path = '')
    {
        $name = token();
        $extension = $file->guessClientExtension();

        $filename = $name . '.' . $extension;
        $imageTmp = Image::make($file->getRealPath());

        if (!$imageTmp) {
            return notify()->error('Oops', 'Something went wrong', 'warning shake animated');
        }

        $path = upload_path_images($path);
        $image = $imageTmp->save($path . $filename);

        return $filename;
    }
public function moveFile($file, $path = '')
    {
        $name = token();
        $extension = $file->guessClientExtension();

        $filename = $name . '.' . $extension;
        $imageTmp = Image::make($file->getRealPath());

        if (!$imageTmp) {
            return notify()->error('Oops', 'Something went wrong', 'warning shake animated');
        }

        $path = upload_path_images($path);
        $image = $imageTmp->save($path . $filename);

        return $filename;
    }
public function moveFile ( $ file , $ path = '' ) { $ name = token ( ) ; $ extension = $ file -> guessClientExtension ( ) ; $ filename = $ name . '.' . $ extension ; $ imageTmp = Image :: make ( $ file -> getRealPath ( ) ) ; if ( ! $ imageTmp ) { return notify ( ) -> error ( 'Oops' , 'Something went wrong' , 'warning shake animated' ) ; } $ path = upload_path_images ( $ path ) ; $ image = $ imageTmp -> save ( $ path . $ filename ) ; return $ filename ; }
Move the tmp file to desired location
@param        $file
@param string $path
@return string|void
Move the tmp file to desired location