PHP

Matrix movie still

Storing JSON in .env Files: A Laravel Developer’s Guide to Managing Google Service Account Keys

When working with Laravel and Google Cloud services, you’ll often need to manage service account credentials that come as JSON files. These credentials are sensitive and shouldn’t be committed to version control, making .env files the natural choice for storage. However, .env files are designed for simple key-value pairs, not complex JSON structures. Let’s explore the best practices for […]

Storing JSON in .env Files: A Laravel Developer’s Guide to Managing Google Service Account Keys Read More »

Laravel Forge Bunny CDN

Setting Up CDN with Laravel Forge: A Complete Production Guide

In this guide, I’ll walk you through setting up Bunny CDN in front of your Laravel application hosted on Forge (or whatever server), while maintaining Let’s Encrypt SSL certificates and implementing proper security measures. The best part? The setup is surprisingly simple – requiring just a few DNS changes and a 5-line PHP redirect. No

Setting Up CDN with Laravel Forge: A Complete Production Guide Read More »

brown and silver telescope near body of water during daytime

Fix: Forbidden – a valid x-typesense-api-key header must be sent.

You might encounter the following error with Typesense in PHP / Laravel / Scout: While it seems like something is missing, it could also be, because the scope of your API key is too strict. When trying to create a key that has access to all scopes + all permissions, you can check if it

Fix: Forbidden – a valid x-typesense-api-key header must be sent. Read More »

Laravel Upgrading Cycle

Why Laravel Is Not Always Fun Anymore Due To Its Upgrading Cycle

I used to develop projects with PHP only, without a framework. Different classes, functions, etc. Until it became a mess and I was looking for something more structural. Laravel came onto my journey and I love(d) it. Finally having a structured way of writing projects with Model, View and Controller structures with the Blade engine

Why Laravel Is Not Always Fun Anymore Due To Its Upgrading Cycle Read More »

Cookie Javascript PHP subdomains

Setting a Cookie on a Subdomain from an AJAX Request with PHP

Cross-domain requests have always been a challenging aspect of web development. When it comes to sending AJAX requests from a subdomain to another subdomain, managing cookies can be even more complex. However, with the right techniques and configurations, it’s possible to set cookies on subdomains securely and efficiently. In this article, we’ll explore how to

Setting a Cookie on a Subdomain from an AJAX Request with PHP Read More »

How to Fix: PHP Fatal error: Uncaught RedisException: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?

When setting up PHP Redis in a way like Digital Ocean on a localhost, you might get this error: Fatal error: Uncaught RedisException: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct? We assume your PHP script starts like this: Because this is a localhost, we

How to Fix: PHP Fatal error: Uncaught RedisException: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct? Read More »

TileCache OpenStreetMaps

Embedding OpenStreetMap in a Privacy-Friendly Way with Leaflet JS

Embedding OpenStreetMap (OSM) on your website can provide valuable location information to your users. However, due to the General Data Protection Regulation (GDPR), concerns may arise regarding the collection of data like IP addresses by OSM. To address these concerns and try to create GDPR compliance regarding OSM, this developer blog explores an approach to

Embedding OpenStreetMap in a Privacy-Friendly Way with Leaflet JS Read More »

en_USEnglish
Scroll to Top