In Laravel 5.3 I am using SQLite as my default DB connection and, my .env file I removed all MySQL connection details. when I use artisan command and tinker command to create a new entry and fetch entries are working fine. but from the controller or eloquent I cannot fetch or add a record, it throws strange MySQL connection fail error.
PDOException in Connector.php line 55:
SQLSTATE[HY000] [2002] Connection refused
in Connector.php line 55
at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=homestead',
'homestead', 'secret', array('0', '2', '0', false, false)) in Connector.php line 55