haidubogdan / netbeans-php-blade-plugin

Netbeans 18+ module plugin for php blade template files
Apache License 2.0
26 stars 4 forks source link

First and Fourth argument of `@each` directive are a path #22

Closed parallels999 closed 2 years ago

parallels999 commented 2 years ago

https://laravel.com/docs/9.x/blade#rendering-views-for-collections

@each('view.name', $jobs, 'job', 'view.empty')
haidubogdan commented 2 years ago

Hi,

Thank you for you observation. For the moment I've just added the autocomplete of the first blade path and the declaration finder.

release v2

We will keep the issue opened until a valid parser is added for this directive and the fourth parameter is seen as a view path.

parallels999 commented 2 years ago

Thanks 👍

parallels999 commented 2 years ago

Hi Also @includeWhen, @includeUnless has path on second argument, and @includeFirst has an array of paths on first

@includeWhen($boolean, 'view.name', ['status' => 'complete'])

@includeUnless($boolean, 'view.name', ['status' => 'complete'])

@includeFirst(['custom.admin', 'view.name'], ['status' => 'complete'])
parallels999 commented 2 years ago

Thanks