I can’t state how many times I have an idea for a side project. Start it, and scrap it. A lot of that is my ADHD, but one thing that I hate about Laravel’s installer and boilerplate is I ALWAYS have to edit the .env.

There’s a few things though that never change from project to project.

Here are my generally sensible defaults for most laravel projects:

Change App Name / Url

Mailhog for email testing.

Setup redis for sessions/cache/queue.

Running extra scripts.

I always run a script that creates a symlink from ~/sites/appname ~ path/to/app/public.

My default NGINX site config automatically creates all .test domains for any symlink…


Disclaimer: I’m by no means a Javascript expert, I’m a fullstack developer that makes his bread by using Laravel + Vue and sometimes (begrudgingly) jQuery. There’s many things I know I don’t know, but I’ve also know that for full stack developers, we just need to know enough to be dangerous and do our job, i.e. finish the tasks our company/clients put us on.

We don’t need to know every intrinsic detail, who has time for that? Maybe if we worked for a company that gave us 20% off to work on self-learning. …


Today we’re going to learn the magical art of infinite scrolling pagination. More specifically, we will be building a Laravel Livewire component that will scroll infinitely like you might see on Twitter or Facebook feeds.

The “infinite scrolling” or “infinite pagination” livewire component will dynamically query data using cursor pagination which helps keep things efficient.

This should be a pretty simple tutorial, so let’s get started!

Part 1 — Setup our Laravel Livewire Project

It’s assumed that you’ve already set up a laravel project and have tailwindcss installed and set up. …


Imagine being able to simply create a new project (we’ll use laravel for an example), run the command:

Then automatically having testapp.test work in the browser and show your laravel site.

This is what I created and it works beautifully. Laravel is my framework of choice, but you can tweak things to work for most things if you try.

First you’ll need to make it so all .test domains automatically point at 127.0.0.1, this is beyond the scope of this article, I’m unsure how to do it on windows, but there…


Aka how to create a dynamic catch-all nginx config. (Mostly for laravel, but should work w/ any flow if you make some mods).

I absolutely hate editing configs all the time, and I probably create new laravel installs all the freaking time.

Today I finally got sick of the old workflow:

I develop on arch linux and don’t much like vagrant, docker, etc for local development. I’d rather go barebones with php-fpm and nginx.

I also develop mostly under my home…


Learn to use Systemctl to Manage Systemd Services and Units

Table of Contents

Introduction

Systemd is a system manager and “init system” that is the standard for most linux distros as of 2019. If you’re just getting started with linux or have been using older versions and wanting to get up to date with the latest & greatest practices in linux-land then you definitely need to know how to get around systemd.

This particular article will be…


How to delete your docker containers and images easily to clear up space on your dev machine.
How to delete your docker containers and images easily to clear up space on your dev machine.

Cleaning up docker.

Often when I’m trying out new devtools like for instance prisma or hasura, I notice that I’m constantly adding new docker images, containers, etc.. These take up valuable space on my system and can really add up fast.

I often don’t need to come back to these docker instances later on and if I do, there’s usually no foul in just starting from scratch. Till recently I’d just google how do I remove docker containers and images then go through 1 by 1 and remove everything.

It’s not that hard to do, but it gets tedious after awhile, so I…


The idea for this post comes from the recent twitter battle between YCombinator founder Paul Graham and Matthew Prince the founder of Cloudflare over how many of the startups who struggled still had safety nets.

I struggle daily as a freelancer and founder wannabe. Currently I’m working w/ a startup where I ‘sometimes’ get paid, last month I put in 200 hours, but billed for 40 because that’s all they could afford as their app was left in tatters by a shitty Indian outsourcing team.

It’s a mobile app and the backend (php/laravel) has zero code coverage or testing. Instead…


Introducing: Bus Factor Insurance.

Photo by Val Vesa on Unsplash

Everyone is always excited to live on the bleeding edge. Iterate fast, drive hard, go to market as soon as possible. Money is a major factor for almost all startups and time is money. To save money the CTO will often work as the solo-developer.

But what happens when that developer gets hit by a bus, or finds a better opportunity?

What happens the next day, when your server goes down and you have nobody to call to fix it?

What is Bus Factor?

The bus factor is a measurement of the risk resulting from information and capabilities not being shared among team members…


Photo by Joshua Aragon on Unsplash

Languages: PHP, Ruby, Javascript, SQL, HTML, CSS, Python.

Frameworks: Laravel, Rails, Vue, React, jQuery, Angular, Node.js, Express, Adonis.js, Codeigniter, WordPress, Bootstrap, Material-ui, Element-ui, Vuetify, Fastify, Ionic, Cordova, etc.

Coding is in my blood. I was a 4.0 student in High School, but when I got to Community College in 2018, I found the computer lab. I’d spend hours and hours in there working on a shitty geocities website with snowflakes falling, and a dancing baby and the works.

Throughout the early 2000s, I mostly just knew html/css and some small bits of php, and I could install/tweak existing scripts pretty well, but I never thought to do web design as a career, mainly because my ‘design’ skills sucked… but so did everybody else’s (They still do that’s why…

Patrick Curl

Patrick is a geek, coder, developer in and Laravel Developer in Utah. He’s always looking for Freelance work, while building side projects in his spare time.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store