Skip to content

Blades extending layout #15

@EggIt

Description

@EggIt

Hi,

I got a blade file as follows:

@desktop
    @extends('layouts.app')

    @section('content')
        <h1>DESKTOP VERSION</h1>
    @endsection
@enddesktop

@handheld
    <h1>MOBILE VERSION</h1>
@endhandheld

The h1 tags are working as expected, on desktop it shows DESKTOP VERSION and on mobile it shows MOBILE VERSION.

But the same layout layouts.app is being used by both clients.

I expected the layout to be used by desktop only, is this an issue or did i miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions