Blade Use Laravel Blade templates as a standalone component without the full Laravel framework

Getting Started

Instance

Static

Directives

Usage

View the API Documentation for this class

Output a basic view (from views/index.blade.php)

use duncan3dc\Laravel\Blade;

echo Blade::render("index");

Multiple Paths

Check multiple directories for a view (from /www/views/index.blade.php if it exists, otherwise views/index.blade.php)

Blade::addPath("/www/custom/views");

echo Blade::render("index");