clod986
clod986

Reputation: 2647

Laravel 4 Blade markup and Ide Helper in PhpStorm

I cannot manage to have the autocomplete in PhpStorm to work for the Laravel 4 blade.php files. I've searched everywhere, but I cannot find other users with my problem. I have correctly installed this repository at https://github.com/barryvdh/laravel-ide-helper but I still get a blank formatting for the blade pages.

Thanks

Upvotes: 5

Views: 9668

Answers (2)

Alex
Alex

Reputation: 35098

As for PHPstorm 9 you just have to change the settings for blade files to recognize Laravel's tags as follows:

Settings

Upvotes: 2

Hailwood
Hailwood

Reputation: 92641

The laravel-ide-helper package is not designed to give you autocomplete in the blade.php files. The laravel-ide-helper package is designed to give you autocomplete for the laravel facades in other PHP files.

PHPstorm does not know that code between {{ }} and {{{ }}} is PHP code so it does not know that it should provide autocomplete ability.

There is an issue on the PHPstorm Issue Tracker for syntax highlighting for the blade templating language that you should add your voice to if you wish for JetBrains to implement this feature.

Upvotes: 5

Related Questions