How to link favicon icon at Laravel

For Laravel 5.xx

We can link favicon icon and css file in the following way. In Laravel application put your favicon icon and css file under the public folder. In my case, I put them public/css folder.

<link rel="shortcut icon" href="{{ asset('img/favicon.png') }}">
<link href="{{ asset('css/style.css') }}" rel="stylesheet">

For Laravel 6.00

<link rel="icon" href="{{ URL::asset('/css/favicon.jpg') }}" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="{{ URL::asset('/css/app.css')  }}">

In laravel 5, the favicon.ico is in public/favicon.ico To change the favicon, just have to replace public/favicon.ico with yours.

<link rel="shortcut icon" href="{{ asset('img/favicon.ico') }}">

In blade we can use the assets like asset('img/favicon.ico') but they should be in {{...}} instead of {{{...}}}