yocmen/blade-components

This package introduces the concept of components in blade templating, take it from L5.4 for L5.1 LTS
1,253 8
Install
composer require yocmen/blade-components
Latest Version:v1.0.2
PHP:>=5.5.38
Laravel:5
License:MIT
Last Updated:Jan 30, 2017
Links: GitHub  ·  Packagist
Maintainer: yocmen

Blade Components and slots for Laravel 5.1.x

This package introduces the concept of components in blade templating for Laravel 5.1.x LTS

Components allow you to extend a view and inject content into it, inline, within your views.

Why?

To make it easier to create reusable components. Maybe, like me, you need this feature in your L5.1.x app and cant upgrade to L5.4.x because is to hard change a big project.

Installation

Begin by installing this package through Composer.

{
    "require": {
        "yocmen/blade-components": "v1.*"
    }
}

Next open up app/config/app.php, comment out the Illuminate View Service Provider, and add the one from this package:

'providers' => array(
    //'Illuminate\View\ViewServiceProvider',
    ...
    'Yocmen\BladeComponents\BladeComponentsServicesProvider',
)

And that's it!

All documentation for this feature u can find it here: https://laravel.com/docs/5.4/blade#components-and-slots

Related Packages

forxer/blade-ui-kit-bootstrap

Blade UI Kit components with Bootstrap styles and classes

589 5
fuzaylov/bootstrap

Helper library to create Bootstrap html fields

115 6
yocmen/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://gith...

13,735 16
anourvalar/laravel-form

Laravel blade components for HTML form elements (input / select / textarea)

9,028 0
tje3d/html-minify

Minifies the HTML output of Laravel 5 applications (Originally from https://gith...

88 0

Version History

Version Released PHP Laravel License
v1.0.2 >=5.5.38 5.1.x MIT
v1.0.1 >=5.6.4 5.1.x MIT
v1.0.0 >=5.6.4 5.1.x MIT