mardi 2 juillet 2019

How to manually set IP to Request Object in Laravel for testing

I need to set IP address on laravel requests for testing.

I don't want to mock Request.

Please, help.

This is how I'm getting IP in a controller

$ip            = $request->ip();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire