w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Laravel 4 - How to render child view which @extends('parent'), without the parent

You can use something like this

@extends(((condition) ? 'layouts.plain' : 'layouts.base'))

Now create a layout named plain and keep nothing inside it but just content, this way you can use a plain layout, for example, check this answer.

//layouts/plain.blade.php
@yield('content')




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.