Working database configuration required?
Opened this issue · 3 comments
After installing this helper on an out-of-the-box Laravel project and running it via artisan for the first time, I got this error:
[PDOException]
SQLSTATE[42000] [1049] Unknown database 'database'
Not a major problem at all and the fix/problem is pretty obvious as I haven't modified the configuration in config/database.php yet, just wondering why your helper insists on a working database connection.
It's instantiating every aliased class in order to reflect it and I assume that this error is thrown when it instantiates the database class. But I'll look into it. Thanks for testing it on a clean install, something I obviously hadn't done yet.
Ah, I also thought it's probably because of reflection. No big deal anyway, just thought I'd mention it while I am giving it a go. Thanks for this helper!
So for now I merely documented the behavior, but I'll leave the issue open for future reference.