Problem: You use the famous https://github.com/spatie/laravel-google-fonts/, but on local development or laragon you get “blocked: mixed content”, when you call your app with HTTPS. Solution: […]
Category: PHP
Translate Laravel system messages and errors to different languages
If you want to translate your laravel messages to different languages, you can do so in minutes with https://github.com/Laravel-Lang/lang It took me literally 1 minute to change my complete backend to german with this package. Kudos, guys, great job. […]
Read More… from Translate Laravel system messages and errors to different languages
Laravel 11 Dark Mode Toggle Button
I forever loved dark mode on websites, since I come alive late when its already dark outside. And since I am a fellow Laravel user, I want my websites to have dark mode, too. I stumbled upon this post some time ago, and Klender (the author) really has written a good explanation how to implement […]
E: The repository ‘http://security.debian.org stretch/updates Release’ does no longer have a Release file.
Problem: The repository URL has changed. Solution: Change repository URL to debian archive. grep -rl “security.debian.org” /etc/apt/ | xargs sed -i ‘s/security.debian.org/archive.debian.org/g’ […]
E: The repository ‘https://packages.sury.org/php stretch Release’ does no longer have a Release file.
When updating your old Debian Stretch server, you experience the following error:E: The repository ‘https://packages.sury.org/php stretch Release’ does no longer have a Release file. Solution: Use a mirror of the old repository. echo “deb https://debian.octopuce.fr/snapshots/sury-php/stretch-latest/ stretch main” | sudo tee /etc/apt/sources.list.d/php.list wget -qO – https://debian.octopuce.fr/sury-php/apt.gpg | sudo apt-key add – sudo apt update Note: if […]
Write PHP Array with print_r as debug output to a file instead of echoing it
PHP debugging made easy At some point in our life as PHP developer, we come to the point where we are debugging PHP by checking the values of our variables, arrays and objects.We all know: Its easy to debug in Javascript. You can do something like:console.log(“variable is:”+myVar); This is a problem for PHP debug.You can […]
Read More… from Write PHP Array with print_r as debug output to a file instead of echoing it
Delete already deleted Acronis Backups?
Always wondered, how you can delete an already deleted Acronis Cyber Security backup on your webspace, that still uses space of your backup space? I was wondering, too. These backups you see, when you turn on “show deleted backups”. They take up space on your backup space, you can see them on your Acronis Management […]
Welcome to the new pascha.org
Welcome, lads and ladies, to a new chapter of random coding snippets. This is a blog to remember some funny situations from my life as a B4cKeNd Dev3LoPeR. […]