如何使用Firebase显示blade.php文件 [英] How to display blade.php files using firebase

查看:104
本文介绍了如何使用Firebase显示blade.php文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是firebase的新手。当我试图通过firebase显示托管的blade.php文件时,将直接下载文件。但我需要将它们显示为网页。那么,我该如何实现这一目标呢?解决方案

Firebase托管服务仅用于静态资产。它不会解释你的PHP代码/刀片模板,而是将它们解释为服务。



如果你想提供PHP,你将需要找到一个PHP托管服务。 / p>

如果您想使用Firebase托管服务,则必须提供静态HTML,例如单页面应用程序


I am new to firebase. When I am trying to display the hosted blade.php files through firebase that files will be directly get downloaded. But I need to display them as web pages. So how can I achieve this goal?

解决方案

Firebase Hosting is for serving static assets only. It will not interpret your PHP code/Blade template and will instead serve them uninterpreted.

If you want to serve PHP, you will need to find a PHP hosting service.

If you want to use Firebase Hosting, you'll have to serve static HTML, such as for a single-page application.

这篇关于如何使用Firebase显示blade.php文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆