Undefined Requesting a Class in Laravel

I am using Laravel Request Facades, however my import is marked as undefined by my IDE (PhpStorm 8).

use Request;

      

I'm new to the "Facades" idea, but not sure what I'm missing.

+3


source to share


1 answer


This is because the instances you get from Facades are dynamically resolved, use this package which generates a file that provides the exact class definitions that PHPStorm can understand:



Laravel 5 IDE Helper Generator

+1


source







All Articles