torch-filament

Installation

Install Lara Zeus Torch Filament by running the following commands in your Laravel project directory.

1composer require lara-zeus/torch-filament

Usage

1TorchEntry::make('code')
2 ->columnSpanFull()
3 // set the theme, optional, the default is github theme
4 ->theme([
5 'light' => 'everforest-light',
6 'dark' => 'everforest-dark',
7 ])
8 // add Gutter for line numbers and (-+) marks
9 //->withGutter(false)
10 // add a wrapper
11 //->withWrapper(true)
12 // code language
13 //->grammar('php')
14 ->state(<<<'PHP'
15 echo "Hello, world!";
16 echo "Hello, world! I am focused"; // [tl! focus]
17 echo "Hello, world! Added"; // [tl! ++]
18 echo "Hello, world! Deleted"; // [tl! --]
19 PHP),

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.