承接 ibrahim-bedir/filament-dynamic-settings-page 相关项目开发

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

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

ibrahim-bedir/filament-dynamic-settings-page

最新稳定版本:v1.0.0

Composer 安装命令:

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

包简介

README 文档

README

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.

统计信息

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

GitHub 信息

  • Stars: 27
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-30