I'm working on this project using Laravel.
According to this tutorial I'm watching, I had to add this bit of code at the top of the main view.
@extends('layouts.masters.main')
Since I'm new to Laravel this got me wondering why can i not simply use.
@include('layouts.masters.main')
I tried it instead and it did the same thing basically. Only thing is i do know how include works but i don't really know what extends does.
Is there a difference and so yeah what is it. Why did tutorial guy go for @extends
and not @include.