Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Cannot clear laravel migrations because of invalid database url config

I accidentally added a wrong database url to my Laravel config now every time I try doing anything with artisan I get this error

 InvalidArgumentException 

  The database configuration URL is malformed.

I already removed that line but now I can’t clear the cache for the config and every time I do anything with artisan I get the same error even when I just run php artisan help , something like an infinite loop where laravel has to clear the cache to get rid of the bug but I can’t clear it because of the bug

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try

composer dump-autoload
php artisan config:cache

If it didn’t work could you share the config file

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading