Git Product home page Git Product logo

filament-dynamic-settings-page's Introduction

Package Overview

Filament Dynamic Settings Page Plugin

Save your settings quickly and simply.

Installation

You can install the package via composer:

composer require ibrahim-bedir/filament-dynamic-settings-page

Usage

Just install the package and you're ready to go!

Configuration

You can publish the config file and migrations with:

php artisan filament-dynamic-settings-page:install

This is the contents of the published config file:

<?php

return [
    'title' => 'Settings',
    'navigation' => [
        'label' => 'Settings',
        'group' => 'Settings',
        'sort' => '1',
        'icon' => 'heroicon-o-cog',
        'folder' => 'settings'
    ],
    'breadcrumbs' => [
        'Settings',
    ],
    'tool' => [
        "enable" => false
    ],
    'permission' => [
        'enable' => false,
        //  permission name 
        // 'name' => 'list.settings'
        'name' => ''
    ]
];

easily accessible from the front:

add app/helpers.php

<?php

use IbrahimBedir\FilamentDynamicSettingsPage\Models\Setting;

function setting($key)
{
    return Setting::where('key', $key)->first()->value('value');
}

composer.json

...

"autoload": {

    "psr-4": {

        "App\\": "app/",

        "Database\\Factories\\": "database/factories/",

        "Database\\Seeders\\": "database/seeders/"

    },

    "files": [

        "app/helpers.php"

    ]

},

...
    composer dump-autoload

welcome.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Laravel</title>
    </head>
    <body class="antialiased">

        {{ setting('site.title') }}

    </body>
</html>

Things to do list

  • more fields
  • fields options

Lisans

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

filament-dynamic-settings-page's People

Contributors

ahmetbedir avatar flutterbuddy1 avatar ibrahim-bedir avatar rumi55 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.