JacobBennett - Gistlog.co

Jacob Bennett

@JacobBennett
  • Clean up your Vue modules with ES6 Arrow Functions Posted 2 years ago

    Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.…

  • The Hows and Whys of Software Development (Writing a SDLC) Posted 2 years ago

    What is your policy on the use of production data for development? How does someone go about creating a new feature? What do you do when you encounter a bug in your software? Do you have ANY of this documented? Get started creating your own Software Development Life Cycle document the easy way... by copying mine!…

  • How Laravel's SerializesModels Trait Could Save Your Bacon Posted 2 years ago

    Why does Laravel re-retrieve serialized Model values from the DB for queued jobs? Take a look at this quick example to see how it could save your bacon!…

  • Fast Favicons Posted 2 years ago

    Favicons are out of control. Thankfully there is hope! Generate the HTML and images for a perfect favicon stack in one step.…

  • API Token Authentication in Laravel 5.2 & 5.3 Posted 2 years ago

    I was happy to find that Laravel 5.2 & 5.3 ships with a TokenGuard class that allows users to authenticate by sending an api_token along with their request, but the documentation on getting it to work is a bit thin, so here you go.…

  • Return a custom Unauthorized page for Laravel Form Requests Posted 2 years ago

    When authorizing an action using Laravel Form Requests, any failure returns an immediate 403. Let's see how we can implement a custom error page.…

  • Setting up a $5 Staging Server with Forge, Envoyer, and Nginx Posted 3 years ago

    Ever wanted to have your very own staging server? Here is how to make that happen for $5 bucks a month using Envoyer, Forge, and Digital Ocean.…

  • Recovering from Laravel failed-job Hell Posted 3 years ago

    The Amazon SES region we use to send email went down for approx 45 minutes. During that time, any emails that we had queued to run failed. This left us with a massive list of failed jobs which all needed to be released to the queue to run again. Sure would be handy to be able to relase multiple jobs at once.…

  • Sharing Laravel Cookies across subdomains Posted 3 years ago

    Ever had a suite of applications hosted on a set of subdomains that all needed to be able to share a single cookie value? Here's how I accomplished it using Laravel's Cookie facade.…

  • How SQL orders results when using equals Posted 3 years ago

    The end goal was to order a query by a list of specific values for a column, but then also order those by a created_at date in ascending order and then by id in ascending order This proved to be more…