Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tenmaurakashi's avatar

laravel blade causing system panic, php dev server taking up all memory until frozen

the question may sound weird but apparently on using @include the php development server hangs on a single http request and begins to take all the system memory until everything is frozen and the system has to be restarted forcefully

** // my view folder structure partials |____ header.blade.php layout |____ layout.blade.php home.blade.php

**

** layout.blade.php:

@include('partials.header') **

** home.blade.php

@extends('layout.layout') **

0 likes
3 replies
Snapey's avatar
Snapey
Best Answer
Level 122

Any loops in that file?

Snapey's avatar

or does your layouts file extend your layouts file?

@extends('layout.layout') **

tenmaurakashi's avatar

I'm so sorry @Snapey, I'm such a jerk, I was extending the layout file in partials too, which were causing the loop. i'm so sorry

Please or to participate in this conversation.