Search code examples
phphtmllaravelglobal-variablesadminlte

Laravel, icon and name tab php, html


I am doing a laravel project using adminlte, is there a way to use this:

<title>Domínios - Iniciar Sessão</title> <link rel="icon" href="../domain.png">

globally, so I don´t have to put it in everypage?

The name and the icon of tab.


Solution

  • Create a global layout that wraps all your views and includes this line. I suggest reading laravel's blade template page. This is a common problem that this feature is made for.

    https://laravel.com/docs/9.x/blade#extending-a-layout