How do I include snippets, or partials in pages in Laravel 5? In node/angular, it's quite easy to simply load different modules and such on a page.
For example, on my home page, I'm looping through some data:
<h1>Home</h1>
@if (count($practice))
<ul>
@foreach($practice as $val)
<li>{{ $val }}</li>
@endforeach
</ul>
@endif
If I include the login snippet on the page, it covers up the rest of the data:
<h1>Home</h1>
@if (count($practice))
<ul>
@foreach($practice as $val)
<li>{{ $val }}</li>
@endforeach
</ul>
@endif
@include('auth.login')