Search code examples
phplaravelextends

Laravel @extends('layouts.app') not working on some pages


@extends('layouts.app') does not work on some of my web pages. it just shows the content without the layout. why is this happening?

I already tried making a new layout folder and calling it but still some pages still doesn't show the layout.

both show.blade.php and create.blade.php doesn't display the layout

it only shows like this

app.blade.php this is the navbar.blade.php


Solution

  • Your CSS file maybe not loading properly.

    change your app.blade.php file like below,

    <link rel="stylesheet" href= "/css/app.css" >