Skip to content
Advertisement

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

Advertisement

Answer

Your CSS file maybe not loading properly.

change your app.blade.php file like below,

<link rel="stylesheet" href= "/css/app.css" >
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement