samedi 23 janvier 2016

Force Laravel to use MySQL for authentication when MongoDB is set as default

I thought by having the follwing line in User.php was enough. Where else do I need to modify my DB connection?

protected $connection = 'mysql';

However, when attempting to reset my password, it's throwing an error. I see it's trying to communicate with my MongoDB DB, which is my default DB.

strtotime() expects parameter 1 to be string, array given
in /var/www/html/ocd3/vendor/laravel/framework/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php line 126 at HandleExceptions->handleError('2', 
'strtotime() expects parameter 1 to be string, array given',
'/var/www/html/ocd3/vendor/laravel/framework/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php', '126', array('token' => array('_id' => object(MongoId), '



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OPePfF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire