According to the Laravel documentation Request is acquired via dependency injection. For a controller this is fine, but how do we access Request object outside a controller, for example in a view
There is request helper in laravel. You can use Request Object anywhere.
Here’s laravel documentation link for request helper