Branding


There are times when you want the visual style of the platform to match your brand. After installation, two settings are provided that are located in config/platform.php:

'template' => [
    'header' => null,
    'footer' => null,
],

To change the page header or footer, you must specify your own blade templates.

Change logo and name

Create a new directory in the brand template section and theheader.blade.php file. Then the full path will look like /resources/views/brand/header.blade.php.

resources          
└── views
    └── brand
        └── header.blade.php

Suppose that we are creating a system for a fictitious analytical agency, we will make changes to the file just created:

@push('head')
    <link
        href="/favicon.ico"
        id="favicon"
        rel="icon"
    >
@endpush

<p class="h2 n-m font-thin v-center">
    <i class="icon-database"></i>
    <span class="m-l d-none d-sm-block">
        Analytics
        <small class="v-top opacity">Nest</small>
    </span>
</p>

In order for the created template to be used instead of the standard one, you must specify it in the configuration file, just as if passing an argument in the view('brand.header') helper:

'template' => [
    'header' => 'brand.header',
    'footer' => null,
],

Note. The configuration file may be cached and the changes will not take effect until the php artisan config:clear command is executed

In the same way, we can change the bottom of the page, again create a new file /resources/views/brand/footer.blade.php with the following contents:

<p class="small m-n">
    © Copyright {{date('Y')}} <a href="//example.com" target="_blank">"Analytics Nest"</a>
</p>

Also making changes to the configuration file:

'template' => [
    'header' => 'brand.header',
    'footer' => 'brand.footer',
],