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.
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community