Handling webhooks locally can be a challenge. In the past, I have used ngrok using Valet Share to expose my local site to the internet. This worked but required me to either pay for a dedicated URL or update Stripe’s webhook whenever I wanted to run a test locally. I recently discovered Stripe’s CLI, which includes a listen for events feature that forwards webhooks to your local application. Read More
Category: Laravel

Twitter Bot
For my new quote site, AtomicQuote, I wanted to add the ability for the site to auto-tweet the most popular quotes throughout the day. I ran into a few issues and wanted to write this post to hopefully help others who want to create an auto tweeting Twitter bot.
Twitter API
The first task was to sign up for a Twitter API account and check their documentation. Make sure you use the account your want to tweet from when you generate your keys. You will need a Key, Secret Key, Token, and Token Secret. Read More
How to Forward a Request to Another Controller in Laravel
If you have ever need to forward or call another controller from a controller in Laravel, here are two methods
This will redirect the request to another controller’s method.
return redirect()->action('[email protected]');
You can also call another method directly without doing a redirect
return app->call('App\Http\Controllers\[email protected]');
Hope one of these methods help!

Useful Git Aliases
If you’re a software developer, you most likely use git. Many people are not aware that you can create an alias for commands. Creating alias will make commands easier to remember and quicker to type. Here are some of my favorite git alias I use on a regular basis.
Short for git status
alias gs="git status"
Quickly commit with wip message
alias wip='git add . && git commit -m "wip"'
Updates your branch and submodules
alias gpa = "!git pull --rebase --prune [email protected] && git submodule update --init --recursive"
Reset all changes (use with caution)
alias nah="git reset --hard && git clean -df"
Leave a comment below on your favorite alias commands.