This package can be used to quickly generate customized and high-quality favicons for your Laravel application. The icons are generated on the fly for different platforms and display resolutions. Usage is super simple and just requires including a view component in your Blade templates.
You can install the package via composer:
composer require lukasmu/laravel-favicon
Add the <x-favicon::links />
view component to the head section of your Blade templates:
<!doctype html>
<html>
<head>
<title>Example</title>
<x-favicon::links />
...
</head>
<body>
...
</body>
</html>
When you use this package to production environments it is recommended invoke the following command to cache the most commonly requested favicons:
php artisan favicon:cache
You can undo the above command by invoking:
php artisan favicon:clear
You may publish the favicon.php
config file with:
php artisan vendor:publish --provider="LukasMu\Favicon\FaviconServiceProvider" --tag="config"
Feel free to set the appropriate environmental variables (or edit the config file) in order to customize the automatically generated favicons.
Please see CHANGELOG for more information on what has changed recently.
Contributions are welcome and will be fully credited. Feedback is very much appreciated as well.
Please see CONTRIBUTING for details.
The package includes tests written for the Pest PHP testing framework which can be run by calling:
composer test
If you discover any security related issues, please email hello@lukasmu.com instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE for more information.