Saturday 11 June 2022

Laravel Trottle AddHeaders Error

Laravel Trottle AddHeaders Error

We sometimes face this error when new install Laravel and run composer udpate

 Type error: Argument 1 passed to Illuminate\\Routing\\Middleware\\ThrottleRequests::addHeaders()

must be an instance of Symfony\\Component\\HttpFoundation\\Response, null given


Solution:

For me, the issue is resolved by correcting database credentials in the .env file. Hope the same will work for

you as well.

No comments:

Post a Comment

Create .ICS file using PHP code

Recently worked on creating a .ics file in PHP after a very long time, code so thought to share with everybody. Please find below the comple...