Support the ongoing development of Laravel.io →
Database Views Blade
Last updated 2 years ago.
0

The users/index.blade.php view should extend the layout/users.blade.php view, because it has to know where to inject itself!

The first few lines of users/index.blade.php should look more like...

@extends('layouts.users')

@section('main')

    <h1>All Users</h1>

    <p>{{ link_to_route('users.create', 'Add new user')}}</p>

    // ...

If this doesn't solve the issue, let us know!

Last updated 2 years ago.
0

DrPrez: Thanks that will help alot

jlaswell: Yep that worked. Thanks

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shiva shiva Joined 24 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.