Tag: php

Environment specific Service Providers and Facades in Laravel

I often work with 3rd party app in my Laravel Projects, some of them are for example barryvdh/laravel-debugbar, barryvdh/laravel-translation-manager or aaronlord/laroute. Now I show you how you can load only specific facades an service providers for development. Let’s build this up. In Laravel there is a .env file which has a variable called `APP_ENV`.   That’s exactly what we need. If the value is […]

cURL error 60: SSL certificate problem

Das Problem: Bei der Arbeit mit einer API (TMDb) stiess ich auf foglenden Fehler: [highlight color=”color here”] cURL error 60: SSL certificate problem [/highlight]. Die Lösung: Folgendes CA Zertifikat herunterladen: http://curl.haxx.se/ca/cacert.pem Anschliessend in der php.ini den Pfad zum gerade heruntergeladenen Zertifikat wie folgt angeben: [cURL] curl.cainfo=path\to\cacert.pem Zu Schluss noch den Webserver neustarten und es sollte funktionieren.

Scroll to Top