Welcome Guest, Not a member yet? Register   Sign In
Access $request in __construct in ResourceController?
#1

How do I access the $request in the __construct of a ResourceController?

I've tried:
Code:
$data = $request->getRawInput(); // Crashes with Internal Server Error

$data = $request->getVar('some_var); // Crashes with Internal Server Error
Reply


Messages In This Thread
Access $request in __construct in ResourceController? - by blaasvaer - 12-17-2020, 03:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB