how to access to $_GET in Laravel 5.2

- 1 answer

Ad

I have a little project on Laravel 5.1

And I updated it to 5.2

And now I get this error from my model:

Class 'Input' not found

And this is the code :

if ( \Input::get('angular') ) { ... }

And where do I find it in the documentation ?

I'm new with Laravel

And I didn't find it

Thanks for the help

Ad

Answer

Ad

You need to use:

\Request::input('angular')

instead of

\Input::get('angular')

Reference: Laravel 5.2 Request documention

Ad
source: stackoverflow.com
Ad