2017 © Pedro Peláez
 

library laravel-appleseed

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

image

genealabs/laravel-appleseed

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

  • Saturday, October 28, 2017
  • by mikebronner
  • Repository
  • 1 Watchers
  • 29 Stars
  • 156 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Appleseed for Laravel

Appleseed for Laravel masthead image., (*1)

Join the chat at https://gitter.im/GeneaLabs/laravel-appleseed Build Status Coverage Status, (*2)

Reasoning

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

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., (*4)

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., (*5)

Dependencies

  • Your project should be running Laravel 5+.

Installation

  1. Install Laravel Appleseed via composer:, (*6)

    composer require genealabs/laravel-appleseed
    
  2. Add the middleware entry in app/Http/Kernel.php directly after the maintenance mode middleware:, (*7)

    /*
      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., (*8)

Credits

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

The Versions

28/10 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

17/11 2015

0.2.1

0.2.1.0

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

  Sources   Download

MIT

The Requires

 

12/11 2015

0.2.0

0.2.0.0

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

  Sources   Download

MIT

The Requires

 

11/11 2015

0.1.0

0.1.0.0

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

  Sources   Download

MIT

The Requires