Laravel Vapor

Going Serverless for PHP and Laravel: the options compared

Not every Laravel professional is a server professional and that is fine. Still, many Laravel apps are hosted on VPS instances. Serverless gives a way to host Laravel or PHP without thinking about hosting. In this article we compare various options. Hosting on AWS Lamda via Bref There is an excellent package called Bref, which […]

Going Serverless for PHP and Laravel: the options compared Read More »

Laravel Bref Serverless ENOMEM memory issues – solving them

When calling: I receive: Or: This is likely because your computer of Virtualbox / vagrant instance does not have enough memory. I tried increasing the memory in Virtualbox, but that didn’t work. Strangely enough, when exiting the vagrant environment, installing serverless on my Mac and running the command again from there, it works:

Laravel Bref Serverless ENOMEM memory issues – solving them Read More »

Nginx Exclude Certain bots

NGINX exclude certain bots like the Internet Archiver Bot

There are enough examples on the internet to exclude certain bots via .htaccess. There aren’t so many examples for when using Nginx. That is why I wrote this article. It is based on this excellent guide to exclude all bots via Builder Society. Exclude Internet Archiver Bot Insert this part somewhere within the http section

NGINX exclude certain bots like the Internet Archiver Bot Read More »

Laravel Telescope

Laravel Telescope: The command “telescope:prune” does not exist.

Since upgrading Laravel to the newest versions, telescope:prune does not always work anymore and gives this error: Telescope is installed though. Hopefully, it will be solved soon. It especially doesn’t seem to work when adding the —hours flag, for example telescope:prune –hours=96. For me, both didn’t work. So far, the way to circumvent this is

Laravel Telescope: The command “telescope:prune” does not exist. Read More »

Wordpress Custom Search

WordPress Override the Search Results Template Page

Looking for ways to override the Search Results Page with a custom template file? 1. Create a plugin directory For example, create a plugin named: custom-search in wp-content/plugins and call the file custom-search.php. 2. Create a search page First, go to your themes search page, for example: /wp-content/themes/graphy/search.php Does your theme has no search page?

WordPress Override the Search Results Template Page Read More »

Tarsnap No Pubkey

Tarsnap: An error occurred during the signature verification: NO_PUBKEY

When having an older Tarsnap package you can get the following error: How to solve it? What did the trick for me was to reapply the first steps of the Debian guide: https://www.tarsnap.com/pkg-deb.html Especially, the part of the initial setup tab. When running that and then running: sudo apt-get update, it seemed to be working

Tarsnap: An error occurred during the signature verification: NO_PUBKEY Read More »

Laravel resolving-declaration translatorinterface error display

Resolving the “Declaration of TranslatorInterface Must Be Compatible” Error in Laravel

One of Laravel’s possible issues is the “Declaration of TranslatorInterface Must Be Compatible” error, which can be quite frustrating to resolve. In this article, we will discuss a common solution to this error and an alternative approach if the standard fix doesn’t work for you. The Error The error message in question typically looks like

Resolving the “Declaration of TranslatorInterface Must Be Compatible” Error in Laravel 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 »

Laravel Upgrade to PHP 8.1: Attribute value must be of type bool for selected attribute, array given: Laravel Upgrade to PHP 8.1

When upgrading Laravel to PHP 8.1, you could receive the following notice: The reason: This should likely be in your theme or Eloquent code. Try adding a new simple temporary route in routes/web.php: When opening /test it should probably be working. That is why it could be something in your theme. Navigate to your blade

Laravel Upgrade to PHP 8.1: Attribute value must be of type bool for selected attribute, array given: Laravel Upgrade to PHP 8.1 Read More »

Scroll to Top