Support the ongoing development of Laravel.io →
Configuration Blade Eloquent
Last updated 1 year ago.
0

I think you may be needing the "Blade Support" plugin, just go the Preferences option in the PHPStorm menu (CMD + ,) if you are on a MAC > Plugins > Install JetBrains plugin and look for Blade.

Install it and restart, it should be working after that.

0

Thank you for your response but I do have Laravel plugin and Blade Support plugin installed and enabled on my PhpStorm. I always have used these plugins but I was just trying to use the variable type hinting in PhpStorm but I just can't figure out why the type hinting works in raw php block but not in blade block... :(

0

Does anyone know what the namespace path to Models folder is? Maybe I need to declare the hint variable with the namespace in order to be recognized within Blade?

0
Solution

For anyone interested in solution to this problem, I just found out that auto-completion assistance does work inside {{ }} blade in PhpStorm 2017.3 EAP build and someone told me it also works in 2017.2.4 version of PhpStorm.

I guess this is a new enhancement after the PhpStorm 2016.3.3 version was released.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

avidh avidh Joined 12 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.