Git Product home page Git Product logo

Comments (6)

haidubogdan avatar haidubogdan commented on June 4, 2024 3

Hi,
yes some blade directives are not implemented, and I didn't know about append.
I've done a new release on https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-04032022 where the append tag is recognized as a closing tag. The (@Stop and @show) are already added as a closing tag for @section.
For the moment I think I will add some logic related to all these blade directives for later.
Also, a version and deprecation system is also required to keep this in balance.

from netbeans-php-blade-plugin.

systemsolutionweb avatar systemsolutionweb commented on June 4, 2024 1

@can,@elsecan,@endcan,
@cannot,@elsecannot,@endcannot
@canany,@elsecanany,@endcanany,
@switch, @case, @default, @endswitch
@while,@endwhile,
@empty for @forelse on autocomplete
@haidubogdan those are the most important,

Examples:

@can('update')
    <!-- The current user can update the post... -->
@elsecan('create')
    <!-- The current user can create new posts... -->
@else
    <!-- ... -->
@endcan


@canany(['update', 'view', 'delete'])
    <!-- The current user can update, view, or delete the post... -->
@elsecanany(['create'])
    <!-- The current user can create a post... -->
@endcanany

 
@cannot('update')
    <!-- The current user cannot update the post... -->
@elsecannot('create')
    <!-- The current user cannot create new posts... -->
@endcannot


@forelse ($users as $user)
    <li>{{ $user->name }}</li>
@empty
    <p>No users</p>
@endforelse
 

@while (true)
    <p>I'm looping forever.</p>
@endwhile


@switch($i)
    @case(1)
        First case...
        @break
 
    @case(2)
        Second case...
        @break
 
    @default
        Default case...
@endswitch

from netbeans-php-blade-plugin.

systemsolutionweb avatar systemsolutionweb commented on June 4, 2024

Thanks, it is fixed now

For the moment I think I will add some logic related to all these blade directives for later.

I will be waiting for new releases 👍

from netbeans-php-blade-plugin.

systemsolutionweb avatar systemsolutionweb commented on June 4, 2024

@haidubogdan hi, is @append bug back?

@append is also a close tag for @section but it is not supported,
i think also @show, @stop are closing tags for @section too
for @section @parent directive is missing

@section('modals')
  <!--contents-->
@append

from netbeans-php-blade-plugin.

haidubogdan avatar haidubogdan commented on June 4, 2024

Hi,
sorry for the regression.
@append is a bit elusive in the laravel documentation.

With this occasion I noticed that @can and it's derivatives was not handled also, so I added a quick fix for them in the latest release,

Thank you :).

from netbeans-php-blade-plugin.

systemsolutionweb avatar systemsolutionweb commented on June 4, 2024

It's working again, thanks

from netbeans-php-blade-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.