jawee / language-blade

Blade (Laravel) templating support in Atom
https://atom.io/packages/language-blade
Other
51 stars 21 forks source link

@endsection vs @stop #70

Closed clroma closed 7 years ago

clroma commented 7 years ago

@section autocopletes with @endsection insetad of @stop The @endsection was used in Laravel 3 and it was deprecated in Laravel 4

Ingramz commented 7 years ago

@clroma the deprecation did not go through. Laravel 4.2+ treat @endsection and @stop equivalently.

https://github.com/laravel/framework/blob/4.2/src/Illuminate/View/Compilers/BladeCompiler.php#L330-L350

https://github.com/laravel/framework/blob/7e718491b9752198c45cfcd73630ac76df414a3c/src/Illuminate/View/Compilers/Concerns/CompilesLayouts.php#L97-L115

Also Laravel 5+ documentation encourages use of @endsection over @stop

clroma commented 7 years ago

@Ingramz You are right. Thanks.