niels / Software / #laravel

Load Laravel configuration from the database

The .env and config files used by Laravel are a great way to separate configuration code from configuration values. However, managing multiple front-end servers requires duplicating your .env file and updating it every time you add or change a variable. To solve this problem, I’ve created a simple solution that is fully transparent to Laravel […]

Read more..

niels / CodeSoftware / #apple,#developer

New team doesn’t show up in Apple Developer

So you invited someone to be a developer on your team, they accepted the invitation, they can use AppStore Connect, but not Apple Developer. What gives? Organization You must be an organization for your team members to get access to Apple Developer. If you are an individual developer, your team members get access to AppStore […]

Read more..

niels / Software / #laravel

Embedding Laravel Passport keys in .env

When deploying a Laravel project to a server, in an ideal scenario, there are two primary steps you should follow: Clone your git repository Configure the .env file However, the introduction of Laravel Passport seemed to disrupt this streamlined process. Every time I deployed to a new server, I found myself needing to manually copy […]

Read more..

niels / Software / #laravel

Redis Sentinel with Laravel

As the use of Redis Sentinel with Laravel does not appear to be documented at the time of writing, I’m sharing the configuration I’m using. This is the redis section of my config/database.php: ‘redis’ => [ ‘client’ => env(‘REDIS_CLIENT’, ‘predis’), ‘options’ => [ // Don’t set ‘cluster’ option. The only valid values are ‘predis’ and […]

Read more..

niels / Software / #filament,#laravel

Auto-reloading Filament (v3) panels using Vite

When integrating a Filament panel into your Laravel project, you might find that Vite’s auto-reloading feature isn’t functioning as expected. This issue arises because the panel isn’t loading Vite-managed resources. While a long-term solution might involve crafting your own Filament theme that incorporates Vite, there’s a straightforward workaround available. By tweaking the AdminPanelProvider class to […]

Read more..

niels / HardwareSoftware /

Setup

These notes are mostly for myself. Feel free to be inspired. Macbook Pro. Latest macOS or Ubuntu. Change hostname to something sensible. macOS Homebrew. As nice as macOS is, it’s incomplete without a good brew. AppCleaner has a great Smart Delete feature which ensures no files are left behind when you delete an app. Alfred. […]

Read more..

niels / Software / #linux,#ubuntu

Removing LUKS full-disk encryption

My homelab server is a NUC running Ubuntu that I previously used as a desktop. To ensure it automatically boots up after a power-failure I wanted to disable the LUKS full disk encryption that I use on all my desktops and laptops. GRUB method For some reason most how-to’s out there use this method: Generate […]

Read more..

niels / Software / #linux,#ubuntu

Preferring IPv4 over IPv6

As explained in my previous post, I get my IPv6 subnet through a tunnelbroker. This is a great way to use IPv6 when your Internet provider does not yet support it. There’s a downside though: the tunnel adds overhead in terms of both latency and a lower MTU. It also introduces an additional point where […]

Read more..

niels / Software / #linux,#snap,#wayland,#zsh

Snap apps with Wayland and Zsh

There’s are two longstanding issues using snap apps in Ubuntu. Two issues that still exist in Ubuntu 20.04 beta. Snap apps don’t show up in Gnome’s Activities view when using Wayland instead of Xorg. Snap apps cannot be started from the command-line when using zsh instead of bash. Looking into this, I ran into numerous […]

Read more..

niels / Software / #vpn

Linux L2TP/IPSec with iPhone and Mac OS/X clients

After moving to China I ran into a few issues that got me to install a VPN. Namely: Latency. I frequently use SSH to access remote servers in US and EU and for some reason the latency here is terrible. Running SSH over a VPN seems to resolve this. A nice bonus is that idle […]

Read more..