承接 tobiasla78/filament-simple-pages 相关项目开发

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

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

tobiasla78/filament-simple-pages

最新稳定版本:v1.0.0

Composer 安装命令:

composer require tobiasla78/filament-simple-pages

包简介

This is my package filament-simple-pages

README 文档

README

alt text

filament-simple-pages

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Create pages from within your Filament panel. Intended for privacy policy, imprint, etc.

Features

  • Resource in your AdminPanelProvider to create pages
  • Customize the URL of your pages
  • Optional image field
  • View pages from another panel
  • View pages from without panels
  • Toggle search engine indexing for each page
  • Toggle the visibility of the page
  • Support for dark mode

Installation

You can install the package via composer:

composer require tobiasla78/filament-simple-pages

Install the plugin and run the migrations:

php artisan filament-simple-pages:install

Basic Usage

Add the resource to create pages in your panel

Register the plugin in your AdminPanelProvider:

use Tobiasla78\FilamentSimplePages\FilamentSimplePagesPlugin;

    public function panel(Panel $panel): Panel
    {
        return $panel
            ->path('admin')
            ->plugins([
                FilamentSimplePagesPlugin::make()
                    ->prefixSlug('page')
            ])
    }

For example: ->prefixSlug('page') will set the page URL to http://localhost/admin/page/privacy-policy.

View pages from another panel

You can make the pages viewable in another Filament panel:

use Tobiasla78\FilamentSimplePages\Pages\SimplePage;

    public function panel(Panel $panel): Panel
    {
        return $panel
            ->path('user')
            ->pages([
                SimplePage::class,
            ])
    }

The URL would be http://localhost/user/page/privacy-policy.

Advanced Usage

Support

discussion or Filament PHP Discord

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-15