3

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

use Request;

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

Joel Hinz
  • 24,719
  • 6
  • 62
  • 75
Kevbot
  • 474
  • 8
  • 21

1 Answers1

1

That's because the instances you get from the Facades are resolved dynamically, use this package that generates a file that provides accurate class definitions that PHPStorm can understand:

Laravel 5 IDE Helper Generator

Bogdan
  • 43,166
  • 12
  • 128
  • 129