I'm doing a draft of a page starting with making the routes.
These are the routes so far:
Route::get('/', function () {
return view('inicio');
});
Route::get('instituto', function () {
return view('instituto');
});
This is the layout:
Encabezado
<br>
@yield('content')
<br>
Pie de pagina
This is the home page: @extends ('layout')
@section('content')
Esto es el inicio
<a href="{{ route('instituto')}}">instituto</a>
@endsection
This is the institute: @extends ('layout')
@section('content')
instituto
@endsection
This is my views folder:
I get this error: "Route [instituto] not defined.