mercredi 11 août 2021

Laravel command with options

I made a command with two options in laravel, first will transfer data and second will delete the data from source php artisan transfer:db --transfer --delete. The problem I am facing is if there is some error in my first option which transferring the data, it will still run the second option which in my case will delete the data. I wanted to know that if it possible to exit the whole command if any of them fails at some step



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire