How to display blade.php files using firebase

2019-01-29 09:05发布

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?

1条回答
forever°为你锁心
2楼-- · 2019-01-29 09:26

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.

查看更多
登录 后发表回答