Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

h3ld3r50's avatar

Apple Touch Icon

Hi to all, Can someone help me adding apple touch icon to the xxx.blade.php of my site. So that when is added as shortcut it shows the icon. Thanks

0 likes
5 replies
tykus's avatar

Check out https://favicon.io/ where you can generate the favicon set for your site, and then add the following to the <head> of your layout

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
1 like
tykus's avatar

@h3ld3r50 That depends on how your views are structured. Do you extend a Blade layout, or use Blade components?

1 like
tykus's avatar

@h3ld3r50 okay, so your Blade layout should have something like where you can add the link elements for the favicons:

<!DOCTYPE html>
<html>
<head>
    <!-- meta, title, stylesheets etc. -->

    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="manifest" href="/site.webmanifest">
</head>

Based on the paths above; you are going to be adding the .png files into your public directory

Please or to participate in this conversation.