Support the ongoing development of Laravel.io →
posted 10 years ago
Blade
Last updated 2 years ago.
0

That is difficult to achieve as the IDE is not aware of the properties defined or table fields in the database. Also Blade Templating Syntax in PHPStorm doesn't support this yet at all.

Last updated 2 years ago.
0

So there is no alternative method in Blade for us to achieve something like this in regular PHP?

/* @var $user \Horsefly\User */

I found that this would be a major drawback for me if I can't type hint variable in Blade. This increase the development time and tendency to make careless mistake.

Last updated 2 years ago.
0

I use Codelobster for Blade autocomplete: http://www.codelobster.com

0

Sign in to participate in this thread!

Eventy

Your banner here too?

iainheng iainheng Joined 8 Nov 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.