定制 nop-app/filament 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nop-app/filament

Composer 安装命令:

composer require nop-app/filament

包简介

Nop integration for Filament admin dashboard

README 文档

README

Latest Version on Packagist Total Downloads

Integrate Nop with Filament. The package will enable Nop on all the edit pages of your Filament admin dashboard, e.g. /admin/projects/<id>/edit, preventing multiple users to access the same page simultaneously.

Installation

Install the package via composer:

composer require nop-app/filament

Then publish the package config file:

php artisan vendor:publish --tag=nop-config

Configuration

There are a few notable configuration options for the package.

Key Type Description
token String Your Nop token. If you don't have a project yet, create one for free at https://nop.is/account/projects/create.
enabled_routes Array List of routes (RegExp) where Nop should be enabled. By default it will be enabled in every "resource" edit page.
user_name_field String|Null The field corresponding to current authenticated user "name".
settings Array Additional Nop settings. You can take a look to the official Docs to find out more.

Advanced user name

If you need advanced logic for the user "name" field, you can set user_name_field to null in your config/nop.php file and then, although it's not defined in the values, set the nop.name config.
For example in a middleware you can do:

// app/Http/Middleware/NopUser.php

<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Config;

class NopUser
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (Auth::check()) {
            Config::set('nop.user', $userName);
        }

        return $next($request);
    }
}

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email danilo.polani@gmail.com instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固