在父文件夹中扩展Laravel视图

My view folder structure looks like this

+ views
  + user
    -login.blade.php 
  -layout.blade.php
  -header.blade.php
  -footer.blade.php

I want login.blade.php (which is in the user folder) to extend the layout.blade.php (which is in the views folder) but it is not working. I have tried the following statements but doesn't work::

@extends("views.layout")
@extends(".views.layout")
@extends("app.views.layout")

Can someone tell me what am doing wrong.

thanks

The views directory is the main one, so you shouldn't declare it in the path. You could simply use:

@extends("layout")

You just have to use layout without anything in front. All views are absolute to the view path.

@extends('layout')

You will always extend/ include files from the views root. Just use @extends("layout")