Moti Winkler
Moti Winkler

Reputation: 308

how to access to $_GET in Laravel 5.2

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

Upvotes: 1

Views: 2237

Answers (1)

Marcin Nabiałek
Marcin Nabiałek

Reputation: 111859

You need to use:

\Request::input('angular')

instead of

\Input::get('angular')

Reference: Laravel 5.2 Request documention

Upvotes: 6

Related Questions