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



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

تعليقات

المشاركات الشائعة من هذه المدونة

How to Create Treeview with Bootstrap and jQuery

How to Add Images to Dropdown List using jQuery

jQuery Datatables with PHP, MySQL and AJAX Example