To extend a blade template you have to write
@extends('folder.template_name') This works for standard installation.
I've created a module for the backend and now I can't use my module template because Laravel catches the first record and that is the standard view folder.
My structure looks like this:
app -- modules -- modules\backend -- modules\backend\views -- modules\backend\views\layouts\master.blade.php -- views -- views\layouts\master.blade.php So when I'm in the backend and try to display my template:
// app\modules\backend\views\page\index.blade.php @extends('layouts.master') Laravel renders the app\views\layouts\master.blade.php instead of app\modules\backend\views\layouts\master.blade.php
I've tried many names inside that @extends e.g.
@extends('app\modules\backend\views\layouts\master') @extends('app.modules.backend.views.layouts.master') @extends(base_path(). '\app\modules\backend\views\\' . 'layouts.master') Nothing works.