first you go to the route page and check which method you set get or post. If you use get method for form submit so change it and use post. that’s like
Route::post(‘home’,’Controller@method_name ‘);
if you using post so it’s fine.
Now go to controller page and set use IlluminateHttpRequest; below the namespace AppHttpControllers;
In the controller function name call Request and define a variable. like that
sign_up(Request $signupdata) for example
public static function sign_up(Request $signupdata){ $uname=$signupdata->input('username'); }
If you are already use this instruction and give this error so go the back page and reload the page and then try.
Question and answer is powered by AnsPress.io