mercredi 25 avril 2018

How to change different header for various pages in laravel

I need call different header for hosting and about pages mentioned below, while executing the below code I'm getting error as "Undefined class constant 'hosting'". suggest me how to solve this and call different headers for various pages.

@if(Route::hosting == 'hosting')
{
  @include('partials.header');
}
@elseif(Route::About == 'About'){
   @include('partials.header1');
}
 @endif



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire