formfeed-uk/nova-logo-url 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

formfeed-uk/nova-logo-url

最新稳定版本:2.0.2

Composer 安装命令:

composer require formfeed-uk/nova-logo-url

包简介

A Laravel Nova Package for custom App Logo Urls and Links

README 文档

README

This Laravel Nova package adds the ability to set a custom link address, image source, and class for your main App Logo in Nova 4

Requirements

  • php: ^7.3|^8.0
  • laravel/nova: ^4.0

Features

  • Custom Logo URL
  • Custom Dark Mode logo URL
  • Custom Logo Link Url
  • Custom Logo Class

Installation

Install the package in to a Laravel app that uses Nova via composer:

composer require formfeed-uk/nova-logo-url

Usage

Configuration Options

To configure the logo options, add the following to your config/nova.php

// config/nova.php

return [

...

    'brand' => [
        ...
        'logo_src' => 'https://mydomain.com/img/mylogo.png',
        'logo_src_dark' => 'https://mydomain.com/img/mylogo-dark.png', // optional
        'logo_href' => 'https://google.com',
        'logo_class' => 'h-10',
        ...
    ]

...

]

Deprecated Configuration Options

Please note that as of 2.0.0 the following configuration options are now deprecated, and will be removed in a future release, please see the new configuration options above.

'logo_url'
'logo_link'

Known Issues

  • Internal links will result in a full page load rather than following an Inertia Link
  • Due to the way Nova loads package scripts, this will not work for the login page, I recommend using your own login (or breeze or similar) and overriding the login links:
    // config/nova.php
    'routes' => [
        'login' => '/login',
        'logout' => '/logout',
        'register' => '/register',
        'forgot_password' => '/forgot_password',
        'reset_password' => '/reset_password'
    ],

License

Nova Logo Url is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 3
  • 开发语言: Vue

其他信息

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