file_get_contents()适用于本地但不适用于服务器[重复]

I have finished my client project with laravel and after many test in local all works good , but after hosting project to serve show this error :

ErrorException (E_ERROR) file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 (View: /htdocs/resources/views/welcome.blade.php)

Please help me .

</div>

allow_url_fopen is disabled (for good reason) on most productions servers. You shouldn't use it for getting files over URL. Use CURL fo it instead