2017 © Pedro Peláez
 

library blade-extended

Expands the blade functionality of the Laravel framework with additional directives.

image

devmcc/blade-extended

Expands the blade functionality of the Laravel framework with additional directives.

  • Tuesday, October 17, 2017
  • by DevMcC
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

BladeExtended

Expands the blade functionality of the Laravel framework with additional directives., (*1)

Installation

Install this package with the following command from the root directory of your project:, (*2)

composer require devmcc/blade-extended

ServiceProvider

After you have required this package and updated composer, add the ServiceProvider to the providers array in app/config.php, (*3)

DevMcC\BladeExtended\ServiceProvider::class,

Contents

The following is a list of directives that this package adds to blade., (*4)

@block

If your project doesn't permit the use of the else statement and it's a struggle to do this with blade without writing some else-in-disguise or some hacky ternary with includes, then the @block directive might come in handy.
With this directive, you can define codeblocks, the contents of this block will simply work like everything else, with one exception and that is that you can kill this block with a @break., (*5)

@block
    @if ($results->isEmpty())
        No results!
        @break
    @endif

    // Showing all results
@endblock

@ifadd

Echoes a string whether the condition is met., (*6)

@ifadd($iNeedToEcho, 'sanitized output (")')

@ifadd($iNeedToEcho, 'unsanitized output (")', false)

The Versions

17/10 2017

dev-master

9999999-dev

Expands the blade functionality of the Laravel framework with additional directives.

  Sources   Download

MIT License

by Avatar DevMcC

laravel blade directive

17/10 2017

1.1.0

1.1.0.0

Expands the blade functionality of the Laravel framework with additional directives.

  Sources   Download

MIT License

by Avatar DevMcC

laravel blade directive

31/03 2017

1.0.0

1.0.0.0

Expands the blade functionality of the Laravel framework with additional directives.

  Sources   Download

MIT License

by Avatar DevMcC