ErrorException in TestController.php line 31: Undefined variable: request In Lumen
1 2 3 4 5 |
<?php public function displayOutput(){ $uid = $request->input('id'); ?> |
In my TestController.php while accessing a model function it is throwing the error Solution:
1 2 3 4 5 6 |
<?php use Illuminate\Http\Request; public function displayOutput(Request $request){ $uid = $request->input('id'); ?> |