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(); }
You can use it
$params = request()->all();
without
import Illuminate\Http\Request OR
import Illuminate\Http\Request
use Illuminate\Support\Facades\Request OR other.
use Illuminate\Support\Facades\Request