favicon, icon, and apple-icon
The favicon,
icon, or
apple-icon file conventions allow you to
set icons for your application.
They are useful for adding app icons that appear in places like browser tabs, phone home screens, and search engine results.
Image files (.ico, .jpg, .png)
Use an image file to set an app icon by placing a
favicon,
icon, or
apple-icon
image file within your
/app directory.
The favicon image must be located at the top level of
/app/.
Prisma PHP will evaluate the file and automatically add the appropriate tags to your app’s
<head> element.
favicon
Add a
favicon.ico
image file to the root
/app route segment.
The link tag for the favicon is already included in the
<head>
of your
layout.php file.
The only step required is to replace the
favicon.ico
file with your own.
<link rel="icon" href="<?= Request::baseUrl?>/favicon.ico" type="image/x-icon" sizes="16x16">