Reputation: 55
while using @include in laravel, ";" is included automatically before and after my navbar what gives a margin-top for my element.
Upvotes: 1
Views: 54
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