Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 973 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 973 Bytes

Schranz Template Renderer Integration for Blade

Integrate the templating Blade Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-blade-integration

Register the Bootloader class in your app/src/Application/Kernel.php if not already automatically added by the framework:

class Kernel extends \Spiral\Framework\Kernel
{
    protected const LOAD = [
        // ...
        \Schranz\Templating\Integration\Spiral\Blade\Bootloader\BladeBootloader::class,
    ];
}

Configuration

The integration provides the following configuration.

// app/config/schranz_templating_blade.php

declare(strict_types=1);

return [
    'paths' => [
        'app/views',
    ],
    'cache_dir' => 'runtime/cache/blade',
];