How to see laravel view without php Artisan serve

2020-06-23 17:29发布

How can I see the Laravel view without an artisan command CLI. I don't have CLI from my hosting provider, I only have access to FTP, to run Laravel I have to use this command in CLI:

php artisan serve --port=8080 --host=0.0.0.0

How can I get the view without this command?

Thanks.

1条回答
家丑人穷心不美
2楼-- · 2020-06-23 17:59

php artisan serve is not ment for use in production environments because it uses PHP5 build in webserver. If you're with a hosting provider, they probably run Apache and you can just serve your app via Apache.

Have a look at the documentation on php.net if you want to know more about the build in webserver.

PHP applications will stall if a request is blocked.

This web server was designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.

查看更多
登录 后发表回答