Randy_Johnson
3 months ago
212
2
General

layouts.app not working

Posted 3 months ago by Randy_Johnson

I am unable to read layouts.app and I feel its because I stuff blade.php file a couple of layers deep into the folder system, I tried using ../../layouts.app with no luck.

Routes

Route::get('/users', '[email protected]')->middleware('admin');

User Controller

public function read() {
    $users = DB::table('users')->get();
    return view('admin/user/read', ['users' => $users]);
}

View

view > admin > user > read

@extends('layouts.app')

@section('content')

bunch of html here

@endsection

Please sign in or create an account to participate in this conversation.