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

bashiro's avatar

Laravel blade shows code and no render

Good day! I have an issue I do not understand. May be someone might be able to help. I am still learning laravel. I have small project with html admin template. One of the html page displays the laravel blade codes and this happens at profile and password html area. The rest of the pages are fine. In other words the blade page do not render. Any help?

I am running php 8-> Laravel 10 Below is an example of what it displays

@csrf @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif avatar image No file chosen Upload a Photo Address {{$profileData- student->address?? "No category"}} > City {{$profileData- student->city ?? "No category"}} > Country {{$profileData- student->country ?? "No category"}} > Phone {{$profileData- student->phone?? "No category"}} > Email {{$profileData- email}} > Update Profile @endsection ?>

0 likes
9 replies
tykus's avatar

Make sure that the file extension is .blade.php

bashiro's avatar

Thanks for the reply, the blade extension is there. I recently updated the linux ubuntu PC not sure if that might be the cause ?

jlrdw's avatar

Try clearing the various cache.

bashiro's avatar

I tested the application on a different server and it works fine. This means there might be something wrong after the newly ubuntu updates or something wrong with the php on the server after the updates. Thanks a lot for the contributions.

Snapey's avatar

. The rest of the pages are fine. In other words the blade page do not render

Then its not your system. The file extension is not exactly .blade.php

It might be similar like .Blade.php but that is not correct

Please or to participate in this conversation.