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:
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.