mardi 1 mai 2018

how can I add titles from a custom config array in laravel?

I'm trying to display the title of my pages with config. I haven't done anything in .env files and not even given the namespaces for the config to use. Config can be used globally right?

here is my config:

return [

        'page' => [

            'home'          => 'Home',
            'overview'      => 'Overview',
            'A-type-room'   => 'A-type-Room',
            'B-type-room'   => 'B-type-Room',
            'booking'       => 'Booking',
            'meeting'       => 'Meeting',
            'gallery'       => 'Gallery',
            'review'        => 'Review',
            'activity'      => 'Activities',
            'contact'       => 'Contact'

];

Here is my header.blade.php

<title>

    


</title>



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2rd6ujr
via IFTTT

Aucun commentaire:

Enregistrer un commentaire