vendredi 27 juillet 2018

get all files and serialize to array

i want to get all files list and serialize to array, example:


"list" => array("filename", "filename", "filename", "filename");


Thanks in advance.

if(Input::hasFile("rows")) {
    foreach(Input::file('rows') as $file){
        $format = serialize(array(
            "list" => array($file->getClientOriginalName()) // list of all files
        ));
    }
}



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LYxWcY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire