Filament Theme Manager

Filament Theme Manager

A simple package to manage and deploy your Laravel Theme.

About This Package 🔥

This is my first ever package that i ever made, in this package you can manage and deploy your theme from repository, you can activate your theme in 1 dashboard you don't need to clone and deploy manually on your server, you can also apply themes on app (front / user view) and filament admin, this package using hexadog/laravel-themes-manager.

Installation

composer require codewithdiki/filament-theme-manager

Add this provider in your config/app.php file : 

<?php


'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        ...

        /*
         * Package Service Providers...
         */
        \Codewithdiki\FilamentThemeManager\FilamentThemeManagerProvider::class,
        /*
         * Application Service Providers...
         */
        ...

    ],

And on your app/Http/Kernel.php :

<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel
{

protected $middleware = [
        ...
        \Codewithdiki\FilamentThemeManager\Http\Middleware\FilamentThemeManagerMiddleware::class
   ];


}

 

Publish Migration

Have you try Spatie Media Library ? If you have'nt using it you can publish their migration by using this command : 

php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

Then after that you can publish codewithdiki/filament-theme-manager by using this command:

php artisan vendor:publish --tag=filament-theme-manager-migrations

Migrate new published migrations using :

php artisan migrate

 

Publish Config (Optional)

To publish config you can use this command : 

php artisan vendor:publish --tag=filament-theme-manager-config

 

Things You Should Pay Attention

  • This package is using queue to run job, i recommend you to use redis for queue driver
  • Your server / local computer need to have whitelist SSH to theme repository, if you using Laravel Forge or Ploi.io this should be fine ( i still developing on HTTPS git auth ).
  • Your theme need to use Tailwind v3^ to deploy and integrate with fillament styles you can check it here ( Next i will create a setting to not apply theme on filament admin )

 

08/06/2022 10:00

Dirgahayu Republik Indonesia

Ke-77

Diki Akbar Asyidiq

Tech Enthusiast, Fullstack Web Developer, Software Engineer.

Subscribe

(optional)

Select categories you want to subscribe, leave blank if you want to subscribe to all categories.

Cancel

Tags

Filament

PHP

Filament Plugin

Filament Admin

Tailwind

Theme Manager

Plugin

Custom Theme

Laravel Custom Theme

Updates

Filament Theme Manager

Daily Blog

100DaysOfCode

Fullstack Web Developer

Ruby

Ruby on Rails

Ruby Programming

OOP

Open Source

Web Application

Laravel

CMS

Code With Diki

Tips

Spatie

Beginner Review

Filament Form

Journey

Coding Journey

Programming Journey

References

Front-end

UI/UX

Free

Free Website Design

Website Design References

Moota

Integrasi Metode Pembayaran

Payment Gateway

Share

http://codewithdiki.com/packages/filament-theme-manager
Link Copied.
Facebook share
Twitter Share
Reddit Share