jeudi 1 octobre 2015

How to ⌘+lft click on Laravel's view name in PhpStorm to open it?

The same behavior works great with PHP classes, models, interfaces etc. Let's assume you have installed Laravel 5 IDE Helper Generator. Then once you hover on PersonRepository and ⌘ + click it:

public function create(PersonRepository $personRepository)
{
    (...)

PhpStorm will open PersonRepository interface so you can deal with the file extra fast. Fine.

Now imagine view reference like the one below:

return view('foo.bar', compact('lorem', 'ipsum', 'dolor'));

I would like to hover bar so I can ⌘ + click it and then:

/resouces/views/foo/bar.blade.php

will be opened. Any easy way to achieve that or am I missing something? Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire