承接 visanduma/nova-actor 相关项目开发

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

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

visanduma/nova-actor

最新稳定版本:1.0.3

Composer 安装命令:

composer require visanduma/nova-actor

包简介

Simple user switch for development environment

README 文档

README

Nova Actor

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

The Simple User switch for Laravel Nova dashboard

screenshot

screenshot

Installation

You can install the package via composer:

composer require visanduma/nova-actor

You can publish the config file with:

php artisan vendor:publish --tag="nova-actor-config"

This is the contents of the published config file:

return [

     // auth user model
    'model' => \App\Models\User::class,

    // username column of user table
    'username_column' => 'email',

    // allowed environments
    'environments' => ['local'],

];

Setup

  • Update the nova-actor.php config file with your USER Model & column details
  • Register the nova-actor middleware in nova config file
// config/nova.php

'middleware' => [
        'web',
        HandleInertiaRequests::class,
        DispatchServingNovaEvent::class,
        BootTools::class,
        ...
        \Visanduma\NovaActor\Http\Middlewares\NovaActorTheatre::class, // <-- Add this line
    ],

Adding actors/users

Create json file called actors.json in root level of the project. then add any user details as following structure.

Remember to add the actors.json file to .gitignore

[
    {
        "name": "Mallory Olsen",
        "username": "nenojis@mailinator.com"
    },
    {
        "name": "Super  Admin",
        "username": "info@visanduma.com",
        "redirect_to": "/nova/dashboards/main", // optional
        "guard" : "admin" // optional
    }
]

Customizing the view

if you want to customize the Actor dialog content, you can publish the view file and update it.

Publish the view file with:

php artisan vendor:publish --tag="nova-actor-views"

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 2
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固