mike-bronner/laravel-appleseed 问题修复 & 功能扩展

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

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

mike-bronner/laravel-appleseed

最新稳定版本:0.2.1

Composer 安装命令:

composer require mike-bronner/laravel-appleseed

包简介

Prevent the pesky missing-favicon error log entries, and return 404 if they don't exist.

README 文档

README

Appleseed for Laravel masthead image.

Join the chat at https://gitter.im/GeneaLabs/laravel-appleseed Build Status Coverage Status

Reasoning

Eliminate error and server log entries that get thrown by missing favicons, especially the apple-touch-icon.png errors.

Considerations

If you are seeing errors in your server logs, its for a reason: favicons are custom representations of your site, and its probably good to implemented them. This just provides a better user experience for the various devices and browsers that want them.

However, there are times when we just don't want to deal with this, and are spinning up in-house or small experimental projects that won't be used publicly like that. That's what this package is for. Simply add it via composer, and add middleware entry as describe below, and it will return 404s for the missing favicons without cluttering your logs.

Dependencies

  • Your project should be running Laravel 5+.

Installation

  1. Install Laravel Appleseed via composer:
composer require genealabs/laravel-appleseed
  1. Add the middleware entry in app/Http/Kernel.php directly after the maintenance mode middleware:
/*
    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
*/
        \GeneaLabs\LaravelAppleseed\Http\Middleware\FaviconInterceptor::class,
/*
        [...]
    ];
*/

Usage

That was it! It will inspect each route for favicon requests and handle it appropriately.

Credits

Jesse Leite (@jesseleite85) provided lots of ideas and input on making this happen. Thanks!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固