LaravelPackages.net
Acme Inc.
Toggle sidebar
daspete/patternlab-twig-laravel

Adds patternlab behaviour to laravel

99
0
v0.1.4
About daspete/patternlab-twig-laravel

daspete/patternlab-twig-laravel is a Laravel package for adds patternlab behaviour to laravel. It currently has 0 GitHub stars and 99 downloads on Packagist (latest version v0.1.4). Install it with composer require daspete/patternlab-twig-laravel. Discover more Laravel packages by daspete or browse all Laravel packages to compare alternatives.

Last updated

Requirements

Laravel >= 5

TwigBridge >= 0.7

Installation

composer require daspete/patternlab-twig-laravel

Quickstart

Once you have installed the package, you need to register it and its dependencies in your app config -> /config/app.php

add following lines to your 'providers' array:

'providers' => [
    ...
    TwigBridge\ServiceProvider::class,
    Daspete\Laravel\ServiceProvider::class,
]

and add the TwigBridge Facade to your 'aliases' array:

'aliases' => [
    ....
    'Twig' => TwigBridge\Facade\Twig::class,
]

after that, you need to publish the configs of this package and of the TwigBridge package:

    php artisan vendor:publish --provider="TwigBridge\ServiceProvider"
    php artisan vendor:publish --provider="Daspete\Laravel\ServiceProvider"

and edit the new config in /config/twigbridge.php, insert the patternlab extension into the 'extension' array:

'extensions' => [
    ...
    'enabled' => [
        ...
        'Daspete\Laravel\Patternlab',
    ],
]

Resource pack

to get everything working, you'll need some files and directories in the right place.

Download the Resource Pack and unzip the contents into the /resources/ folder.

Comments