I am using Laravel 5 and trying to get all input of POST variable in controller like this-
public function add_question() { return Request::all(); } <
public function add_question() { return Request::all(); }
It should be at least this:
public function login(Request $loginCredentials){ $data = $loginCredentials->all(); return $data['username']; }