Skip to content

master layout error help me  #4

@AyhanALTINOK

Description

@AyhanALTINOK

error codes

Fatal error: Method Xiaoler\Blade\View::__toString() must not throw an exception, caught InvalidArgumentException: View [master] not found. in application/libraries/Blade.php on line 0
A PHP Error was encountered
Severity: Error

Message: Method Xiaoler\Blade\View::__toString() must not throw an exception, caught InvalidArgumentException: View [master] not found.

Filename: libraries/Blade.php

Line Number: 0

Backtrace:

layout/master.blade.php file codes

<html>
<head>
    <title>App Name - @yield('title','test')</title>
</head>
<body>
@section('sidebar')
    This is the master sidebar.
@show

<div class="container">
    @yield('content')
</div>
</body>
</html>

welcome.blade.php file codes

@extends('layouts.master')

@section('title', 'Page Title')

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar.</p>
@endsection

@section('content')
    <p>This is my body content.</p>
@endsection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions