Download the PHP package kallbuloso/laravel-blade-directives without Composer
On this page you can find all versions of the php package kallbuloso/laravel-blade-directives. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kallbuloso/laravel-blade-directives
More information about kallbuloso/laravel-blade-directives
Files in kallbuloso/laravel-blade-directives
Package laravel-blade-directives
Short Description My Blade directives
License MIT
Homepage https://github.com/kallbuloso/laravel-blade-directives
Informations about the package laravel-blade-directives
Laravel Blade Directives
A collection of nice Laravel Blade directives.
Installation
You can install the package via composer:
Usage
@istrue
Only show when isset and true.
Or when you would like to quickly echo
@isfalse
Same as but checks for isset and false.
@isnull
Only show when is null.
@isnotnull
Same as but one shows when is not null.
@dump and @dd
@mix
Create a HTML element to your Laravel-Mix css or js.
Output:
@style
Create a element or element with a css path.
@script
Create a element with or without a js path.
@inline
Load the contents of a css or js file inline in your view.
@pushonce
Same as @push
but will include content one time only. Useful for repeatable blocks.
First parameter must follow the syntax stack-name:group-name
.
Include pushes with standard @stack
directive:
@routeis
Checks if the current route name is equal to the given parameter. You can use a wildcard like blog.post.*
.
@routeisnot
Checks if the current route name is not equal to the given parameter. You can use a wildcard like blog.post.*
@instanceof
Checks if the first parameter is an instance of the second parameter.
@typeof
Checks if the parameter is of a certain type.
@repeat
Repeat something a specified amount of times.
@fa, @fas, @far, @fal, @fab, @mdi, @glyph
Quickly output an icon with Font Awesome, Material Design Icons or Glyphicon.
@data
Output data-attributes from an array.
@haserror
Quickly output for classical to determine if any error messages exist for a given field.
Testing
Contributing
Contributions are welcome, thanks to y'all :)
About kallbuloso
kallbuloso is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-blade-directives with dependencies
laravelcollective/html Version ~5|~6|~7
illuminate/support Version ~5|~6|~7