Quantcast
Channel: How I can make variables autocomplete in the PhpStorm 9 for Blade templates? - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Ben Kucenski for How I can make variables autocomplete in the...

To avoid having to explicitly define every property you want to use in your template, you can do the following:First: Declare the properties you want to expose to your template as typed public...

View Article



Answer by Nikola Dimitrijevic for How I can make variables autocomplete in...

More or less same answer, just wrapped in a blade directive: @php /** @var App\Models\User $user */ @endphp {{ $user->email }}

View Article

Answer by mixel for How I can make variables autocomplete in the PhpStorm 9...

You can now do it like you wanted:<?php/* @var App\Models\User $user */?>...{{ $user->email }} <- autocomplete workingsee...

View Article

Image may be NSFW.
Clik here to view.

Answer by LazyOne for How I can make variables autocomplete in the PhpStorm 9...

At the moment (December 2015) PhpStorm does not support PHPDoc comments in Blade templates using Blade syntax (especially for completing Blade variables).Please follow these tickets (star/vote/comment)...

View Article

Answer by Luke Berry for How I can make variables autocomplete in the...

As of right now this isn't entirely possible due to PHPStorm's lack of support for Blade templates. This package may be of some use for other Laravel related issues...

View Article


How I can make variables autocomplete in the PhpStorm 9 for Blade templates?

I want PHPdoc blocks were considered within the blade template.PhpStorm 9, Laravel 5.1, blade template file:<?php/* @var App\Models\User $user */?>...<?= $user->email ?> <-...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images