Torchlight.dev — The VS Code Compatible Syntax Highlighting API.

Livewire

Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.

Installation

There is no separate Livewire client, instead we'll use the Laravel one.

To install, require the package from composer:

1composer require torchlight/torchlight-laravel

Enabling the Extension

You'll need to register the Laravel middleware to handle the initial page load.

1protected $middleware = [
+ \Torchlight\Middleware\RenderTorchlight::class,
3 \App\Http\Middleware\TrustProxies::class,
4 \Fruitcake\Cors\HandleCors::class,
5 \App\Http\Middleware\PreventRequestsDuringMaintenance::class,
6 \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
7 \App\Http\Middleware\TrimStrings::class,
8 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
9];

The Laravel client will automatically add a persistent Livewire middleware for the subsequent Livewire requests.

Configuration

To configure your Torchlight installation, publish the configuration file by running

1php artisan torchlight:install

To read the rest of the docs, head over to the Laravel client documentation.

A Hammerstone, LLC Product.
Built with Love & Care by Aaron in Dallas, Texas.