Recently, I’ve been diving deep into Nuxt, and the experience has been fantastic. As a Full-Stack Vue Framework, it handles a lot of the heavy lifting, but one classic pain point remains: data visibility. If you come from the Laravel ecosystem, you’re likely spoiled by dump(), dd(), or the powerhouse that is Laravel Ray. These...
If you’ve been a PHP developer for any length of time, you know the struggle of phpinfo(). It’s functional, but it’s certainly not pretty. It’s a giant, un-searchable wall of text and tables that looks like it hasn’t been updated since 1998. Built on a Great Foundation I’ve been a huge fan of the Pretty...
If you haven t already, check out how to set up a Cloudflared Tunnel before you continue. I ve been running Cloudflared tunnels for about a year now. One thing that always bothered me was getting Hot Module Reloading (HMR) to work seamlessly. Before we get started, make sure that your package.json file has type: module or...
When Forge provisions a site, it uses a shallow clone of a single branch. This method prevents switching to other branches later. This approach is helpful for performance. Nonetheless, it can be limiting. This limitation arises when you need to test or deploy from a different branch on a staging or test server. Here’s how...
Cloudflare Tunnel is an excellent tool to expose your local websites to the public securely. It eliminates the need to configure a traditional VPN or public IP addresses. Here s a step-by-step guide on how to set up a Cloudflare Tunnel and use a wildcard to access multiple local sites: Step 1: Create a Cloudflare Account...
PhpStorm has a command-line interface that you can install using the Tool Box, but did you know that you can also use the finder? Normally I d just drag a folder into the app icon in the dock, and I guess that s fine. But it s also sometimes awkward on a dual monitor setup or when you re...
Working on a Composer package locally can be challenging. You don t want to commit changes to Git just to test something, and constantly updating Composer to see changes isn t ideal either. Before, I often used symlinks for local development, and I still occasionally do. Yet, I ve found an easier method for my core projects: using...
I was working on a project that required file uploads such as PDF and JPG. Nevertheless, something was preventing local uploads for some file types. I can upload a PDF but a JPG would thrown an error. My project was using Laravel Filament and the SpatieMediaLibraryFileUpload. Looking in the Chrome Network tab, I see a...
If you are using Nginx as your web server, one solution to this error is to update the client_max_body_size setting in your Nginx configuration. This setting specifies the maximum size of the request body, in bytes. By default, it is set to 1 megabyte (1024 kilobytes). If you try to upload an image larger than...
Many sites still required php 7.4 even though it s older and now considered deprecated. That being said, it s still important to test with newer versions of PHP. Combined with PHP having a quicker release cycle PHP 8, 8.1, and 8.2 are on their way. I have to work with a couple of versions regularly in...