mardi 12 février 2019

how to make folder directory in laravel schedular(custom command)?

I want to create folders when a custom command is run in laravel schedular.its working fine on localhost and on cloud it is not creating folders while if i run same code in controller its creating new folder on cloud server

if(!is_dir('/bucket/FileRun/'.$company->company.'/clients/'.$tk->client->name.'/files/'.$procedure->name.'/'.$date.'/'.$info_type->name))

{

$retun=@mkdir('/bucket/FileRun/'.$company->company.'/clients/'.$tk->client->name.'/files/'.$procedure->name.'/'.$date.'/'.$info_type->name, 0777, true);

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire