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

abbyjanke's avatar

Blade not rendering

Hey,

I am attempting to deploy my application via Git straight to the server and have no problem. Everything works fine on my local machine (homestead) but when getting it onto my staging environment .blade files don't seem to be rendering. If I rename welcome.blade.php to welcome.php it renders it. but when naming it welcome.blade.php it just displays a blank page. There are no error logs in laravel, nginx, or for php.. I am at a loss. I am using PHP 5.6 on my staging environment same as homestead.

0 likes
11 replies
yayuj's avatar

How are you calling your views in your code? (Just curious).

mglinski's avatar

Try clearing your view cache as part of your deploy process?

abbyjanke's avatar

I have attempted to use both view:make() as well as view(). None of them seem to be working. I have cleared my view cache already and still get the error.

yayuj's avatar

@abbylynn - Yes, that is right, but I'm wondering how you are specifying your views, the name. Be aware that you don't have to specify the extension of the file. You can use both . or / to represent a directory. For example:

In the views folder we have:

views
|-- master.blade.php
|-- users
|    |-- index.blade.php
|    |-- create.blade.php
|    |-- show.blade.php

You just have to put in your code: view('users.index'); - This will render index.blade.php.

If it doesn't work you will have to debug in order to see how Laravel is trying to render your view.

1 like
KluVerKamp's avatar

Since it works fine on your local machine, I believe that you need to manually change the permission of the storage file on the hosting server to 755

abbyjanke's avatar

@yayuj - I am calling as view('auth.login') so it is not that.

@KluVerkamp - I did this already and it still does not appear to be working.

abbyjanke's avatar

Well, I played around with the permissions alittle more and it seems to be working. I believe the issue was with permissions on the resources folder.

1 like
KluVerKamp's avatar

Actually, I ran into the very same issue recently, and the resources folder's permissions was the issue!

rubens's avatar

Make sure you are returning the view function.... return view(path)

Please or to participate in this conversation.