Laravel Livewire 3: Reset Pagination after search

When you view a resultpage 2 from a paginated livewire result and change the filter or search, the generated result stays on resultpage 2. This is usually not desired. To change this behaviour and reset the Resultpage to page 1 for every new search, you can add this function to your your Livewire model: public […]

Read More… from Laravel Livewire 3: Reset Pagination after search

PDFs from spatie/laravel-pdf have no CSS when vite is not running

I create PDFs with spatie/laravel-pdf on Laravel 11, styled with TailwindCSS. My layout has I was working locally with vite running. PDfs were looking great. My deployment includes building the css with The website renders just fine with the built stylesheets from /build/assets/…. But: When I deployed my app to my forge server, the PDFs […]

Read More… from PDFs from spatie/laravel-pdf have no CSS when vite is not running

spatie/laravel-google-fonts on local environment with e.g. laragon shows “blocked: mixed content” when served over HTTPS

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: […]

Read More… from spatie/laravel-google-fonts on local environment with e.g. laragon shows “blocked: mixed content” when served over HTTPS

Obtaining a Let’s Encrypt SSL Certificate fails on a freshly installed forge server with:”ERROR: Challenge is invalid!”

I tried to create a SSL certificate on a new digitalocean server administered by forge (a Laravel deployment and server administration service), but eventually failed with an error: ERROR: Challenge is invalid! (returned: invalid) (result: [“type”] “http-01” After some testing and research (I tried removing the .htaccess Basic Auth, changing the hostname, changing the webroot […]

Read More… from Obtaining a Let’s Encrypt SSL Certificate fails on a freshly installed forge server with:”ERROR: Challenge is invalid!”