It's hard to understand what your directory structure is -- this is the structure I would expect given the template you describe:
resources
└── views
├── about.blade.php
├── layout.blade.php
└── welcome.blade.php
Laravel From Scratch - Question about lesson 5 Layouts https://laracasts.com/series/laravel-5-from-scratch/episodes/5
From one of the previous video in the series, I had a pages folder within the views folder, and there I put my about.blade.php file. I also have the welcome.blade.php and layout.blade.php as shown in this video. All the structure would be the following:
->resources ->error ->pages ->about.blade.php ->vendor ->layout.blade.php ->welcome.blade.php
The welcome page works fine, but when I try to load the /about URL, I get a page that duplicates the code from the layout and the section from the welcome file (That means I get two h1 elements with the text "The Welcome Page Goes Here" and two Javascript alerts with the correct text "About page only"). In my about.blade.php file I have the following:
@extends('layout')
@section('content')
So the problem is that somehow the layout file is not being loaded or found properly. I tried creating another about.blade.php file in the views folder, and then it worked properly. Could anyone tell me how to extend a layout file that is stored in an upper folder?
Please or to participate in this conversation.