Answers for "@parent laravel"

PHP
0

@parent laravel

@yield('section', 'Default Content')
Posted by: Guest on August-24-2021
0

@parent laravel

<!-- Stored in resources/views/layouts/master.blade.php -->

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

        <div class="container">
            @yield('content')
        </div>
    </body>
</html>
Posted by: Guest on August-24-2021
0

@parent laravel

Hello, {{ $name }}.

The current UNIX timestamp is {{ time() }}.
Posted by: Guest on August-24-2021
0

@parent laravel

@extends('layouts.master')

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

@section('sidebar')
    @parent

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

@section('content')
    <p>This is my body content.</p>
@stop
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language