beyondcode /
laravel-favicon
| 1 | <?php |
||
| 2 | |||
| 3 | use BeyondCode\LaravelFavicon\Generators\FaviconGenerator; |
||
| 4 | |||
| 5 | if (! function_exists('favicon')) { |
||
| 6 | function favicon($image) |
||
| 7 | { |
||
| 8 | if (app(FaviconGenerator::class)->shouldGenerateFavicon(app()->environment())) { |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 9 | return rtrim(config('app.url'), '/').'/'.config('favicon.url_prefix')."/$image"; |
||
| 10 | } |
||
| 11 | |||
| 12 | return $image; |
||
| 13 | } |
||
| 14 | } |
||
| 15 |