app/Http/Controllers/vua__RegionController.php
/**
     * Little method to modify image filename
     * @param $file
     * @return string
     */
Little method to modify image filename
@param $file
@return string
Little method to modify image filename @param $file @return string
protected function updatefilename($file) {
        $fileName = $file->getClientOriginalName();
        $withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $fileName);
        $fileName =
            $withoutExt .
            '_'.rand(111,999).'.' .
            $file->getClientOriginalExtension(); 
        return $fileName;
    }
protected function updatefilename ( $ file ) { $ fileName = $ file -> getClientOriginalName ( ) ; $ withoutExt = preg_replace ( '/\\.[^.\\s]{3,4}$/' , '' , $ fileName ) ; $ fileName = $ withoutExt . '_' . rand ( 111 , 999 ) . '.' . $ file -> getClientOriginalExtension ( ) ; return $ fileName ; }
Little method to modify image filename
 @param $file
 @return string
Little method to modify image filename @param $file @return string
//cutting of file extension // renaming image