承接 mansoor/filament-torchlight 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mansoor/filament-torchlight

最新稳定版本:v0.0.3

Composer 安装命令:

composer require mansoor/filament-torchlight

包简介

This is my package filament-torchlight

README 文档

README

Latest Version on Packagist Total Downloads

A Torchlight plugin for FilamentPHP, it provides a read-only field to hightlight the code under field.

Installation

To install, require the package from composer:

composer require mansoor/filament-torchlight

⚠️ Use version 0.0.2 for Filament 2 support ⚠️

composer require "creagia/filament-code-field:^0.0.2"

Setup Torchlight

You must follow the Torchlight documentation to Add Torchlight Middleware and Publish the Torchlight configuration file

Once you are done. Make sure to create an API Token from torchlight.dev and add to your .env file.

TORCHLIGHT_TOKEN=your_token_goes_here

Usage

use Mansoor\FilamentTorchlight\TorchlightCode;

class FileResource extends Resource
{
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                TorchlightCode::make('code')
                    ->columnSpanFull()
                    ->theme('github-dark')
                    ->language('php')
            ]);
    }
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 386
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-27