Mandeep Gill
Mandeep Gill

Reputation: 4907

Laravel 5.0 Code Completion in PHPStorm

I tried most of thing and did exactly like larval-ide-helper but getting issue while code completion. please have a look screenshot.

enter image description here

When i use \Redirect in Code it working but not fully and if i use direct Redirect then here is screen :

enter image description here

Any one know what i missing ?

Thanks

Upvotes: 0

Views: 1111

Answers (1)

Safoor Safdar
Safoor Safdar

Reputation: 5696

I think you should look at gist https://gist.github.com/barryvdh/5227822

Just download under your project root and restart you IDE.

From https://github.com/barryvdh/laravel-ide-helper

Update

And also take a look on video by Jef:

https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/15

Update About Namespace in Laravel 5:

The Redirect facade is not in the current namespace. So you either prepend it with :

return \Redirect::something();

Or add this at the top of your controller file:

use Redirect;

Upvotes: 3

Related Questions