You should use $request->input() method in your controller. See the example below:
public function postTest(Request $request)
{
$file_path = $request->input('name');
return response()->download($file_path);
}
Don't forget to import the Illuminate\Http\Request
class in your controller.
For other information, read HTTP Requests docs.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community