Giter Site home page Giter Site logo

shamielo / simple-pages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tobiasla78/filament-simple-pages

0.0 0.0 0.0 58 KB

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

License: MIT License

JavaScript 6.72% PHP 92.25% Blade 1.04%

simple-pages's Introduction

alt text

filament-simple-pages

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style 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
  • 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 with:

php artisan filament-simple-pages:install

Usage

Register the plugin in your AdminPanelProvider.

use Tobiasla78\FilamentSimplePages\FilamentSimplePagesPlugin;

    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugin(
                FilamentSimplePagesPlugin::make()
                    ->prefixSlug('page') // (optional) sets the page url to yourPanelUrl/page/yourPageSlug
            )
    }

You can make the pages viewable in another Panel (directly via url):

use Tobiasla78\FilamentSimplePages\Pages\SimplePage;

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

Customisation

Optionally, you can publish the Filament resource:

php artisan vendor:publish --tag="filament-simple-pages-resources"

Files will be published to App/Filament/Resources you may need to move them and adjust Namespaces if you are using multiple panels.

Optionally, you can publish the views using:

php artisan vendor:publish --tag="filament-simple-pages-views"

Support

Feel free to open a discussion. This plugin also has its own channel on the official Filament PHP Discord server. Feedback is also welcome.

License

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

simple-pages's People

Contributors

tobiasla78 avatar jetwes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.