Giter VIP home page Giter VIP logo

3x1io-filament-themes's Introduction

Screenshot of Login

Filament Theme Manager

FrontEnd Themes Manager For Filament Admin

Installation

You can install the package via composer:

composer require 3x1io/filament-themes

Run migration:

php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan vendor:publish --tag="filament-themes-assets"
php artisan vendor:publish --tag="filament-themes-migrations"

Run migration:

php artisan migrate

Remove default route from routes/web.php

php artisan optimize

add to your composer.json

"autoload": {
    "psr-4": {
        "App\\": "app/",
        "Database\\Factories\\": "database/factories/",
        "Database\\Seeders\\": "database/seeders/",
        "Themes\\": "resources/views/themes/"
    }
},
composer dump-autoload

Create New Theme

to create a new theme just this this command

php artisan filament-themes:generate

it will ask you for the theme name and the theme description

and you will get your new theme folder on path resources/views/themes/THEME_NAME

and your assets folder on path public/themes/THEME_NAME


Theme Helpers

our theme feature has some helpers to make it easy to make a frontend theme like theme assets url

theme_assets()

this function take a url and make it easy to access your theme path public/themes/THEME_NAME/

theme_namespace()

this function get the namespace for the controller folder of the current theme

show_menu()

this function take a key and get this key from settings table and decode it to array so you can use it when you make a menu inside a json setting.

dollar()

this function take a number and convert it to money style with a currency symbol


Generate a Theme Controller

our themes feature support artisan command to generate a new theme controller you can use this command like

php artisan filament-themes:controller

i will ask you about Theme Name and Controller Name

Note: the controller name must be in PascalCase without Controller word on the end because we attach it automatically

Changelog

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

Credits

License

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

3x1io-filament-themes's People

Contributors

3x1io avatar emiliobravo avatar hadyfayed avatar shankhadevpadam avatar

Watchers

Jèfferson Gonçalves 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.