app/Miosk/Manager/ImageManager.php
/**
     * @param SplFileInfo $file all information about the file. Laravel's $request->file('xyz') method
     * returns an instance of SplFileInfo, see: http://laravel.com/docs/5.1/requests#files
     *
     * @returns Image an instance of App\Image
     */
@param SplFileInfo $file all information about the file.

@returns Image an instance of App\Image
@param SplFileInfo $file all information about the file . @returns Image an instance of App \ Image
public static function saveImage(\SplFileInfo $file)
    {
        $imageName = str_random(40) . '.' . $file->getClientOriginalExtension();
        $file->move(ImageManager::getImagesSourceFolder(), $imageName);
        return $imageName;
    }
public static function saveImage ( \ SplFileInfo $ file ) { $ imageName = str_random ( 40 ) . '.' . $ file -> getClientOriginalExtension ( ) ; $ file -> move ( ImageManager :: getImagesSourceFolder ( ) , $ imageName ) ; return $ imageName ; }
@param SplFileInfo $file all information about the file.
@param SplFileInfo $file all information about the file .