Support the ongoing development of Laravel.io →
Requests Architecture
Last updated 2 years ago.
0

Yes.

$request = Request::create('url/here', 'GET', $params);
return Route::dispatch($request)->getContent();
Last updated 2 years ago.
0

Thanks! Is it possible that $request to be the current request? I tried using $request within a filter (should be the current request) but doesn't work

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alex-mn alex-mn Joined 30 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.