Mohmd Ali
Mohmd Ali

Reputation: 55

why do laravel adds ";" when i include a customed navbar?

;while using @include in laravel, ";" is included automatically before and after my navbar what gives a margin-top for my element.

laravel :

HTML Display

Upvotes: 1

Views: 54

Answers (1)

tech2017
tech2017

Reputation: 1806

you do not need ; in laravel.

https://laravel.com/docs/5.4/blade#including-sub-views

@include('includes.main-navbar') do not use ; at the end

Upvotes: 3

Related Questions