定制 xyzgeforce/nova2 二次开发

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

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

xyzgeforce/nova2

Composer 安装命令:

composer require xyzgeforce/nova2

包简介

A wonderful administration interface for Laravel.

README 文档

README

cause you may have a legit license and want to wrap it inside your own packages. not sure if it's safe to use this package cause retrieved from dns poisioned machine, so use at your own risk.

set some random license characters in your .env or config/nova.php

To change yourself, simply install nova.laravel.com through composer (license needed to download) and change within src/Nova.php:

    /**
     * Check to see if Nova is valid for the configured license key.
     *
     * @return bool
     */
    public static function checkLicenseValidity()
    {
        return Cache::remember('nova_valid_license_key', 3600, function () {
            return rescue(function () {
                return static::checkLicense()->status() == 204;
            }, false);
        });
    }

    /**
     * Check to see if Nova is valid for the configured license key.
     *
     * @return \Illuminate\Http\Client\Response
     */
    public static function checkLicense()
    {
        return Http::post('https://nova.laravel.com/api/license-check', [
            'url' => request()->getHost(),
            'key' => config('nova.license_key', ''),
        ]);
    }
    

to:

    /**
     * Check to see if Nova is valid for the configured license key.
     *
     * @return bool
     */
    public static function checkLicenseValidity()
    {
        return Cache::remember('nova_valid_license_key', 3600, function () {
            return rescue(function () {
                return static::checkLicense()->status() != 204;
            }, false);
        });
    }

    /**
     * Check to see if Nova is valid for the configured license key.
     *
     * @return \Illuminate\Http\Client\Response
     */
    public static function checkLicense()
    {
        return Http::post('https://nova.laravel.com', [
            'url' => request()->getHost(),
            'key' => config('nova.license_key', ''),
        ]);
    }

Laravel Nova

Upgrade Guide

  • Copy the Main dashboard to your codebase
  • Delete the cards method from your NovaServiceProvider
  • Action fields() method changed to fields(NovaRequest $request)

Modals

If you have a custom modal, make sure to add the <teleport to="#modals"> component as the root level.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固