Force Laravel to Ignore errors
Force Laravel to Ignore database errors while running a laravel command line program as a demon service eg. $ php artisan extraction:analyze 3 > ./storage/logs/mqtt.log & try { $result = MqttMsg::create($data); } catch (\Exception $e) { $this->error(“ERROR CATCHED:”.$e->getMessage()); returnfalse; }