testing



Setup GitHub Actions for Laravel projects

  • avatar
  • 5.1K Views
  • 1 Like
  • 5 mins read
Preview image

Managing a Laravel project involves many tasks that can be automated to save time and reduce errors. GitHub Actions offers a powerful way to automate workflows directly within your GitHub repository. By integrating GitHub Actions into your Laravel project, you can automate testing, deployment, and other routine tasks, ensuring a more efficient and reliable development process.

Using guard clauses to write cleaner code

  • avatar
  • 3.0K Views
  • 3 mins read
Preview image

Guard clauses are a practical way to write cleaner functions by handling the unwanted cases first. Instead of nesting your entire function inside a stack of if conditions, you check for the early exits up front - returning or throwing as needed - and move on. It's a habit that keeps code flatter and easier to read. The structure becomes simpler, and it’s immediately clear what the function does and under what conditions it doesn’t even bother.

A basic guide to GitHub Actions

  • avatar
  • 3.1K Views
  • 4 mins read
Preview image

In the world of software development, making things easier is always a win. And that's exactly where GitHub Actions steps in to save the day. It's like having an efficient assistant that takes care of all the repetitive tasks for you, so you can concentrate on the creative aspects. Let's take a closer look at why GitHub Actions is such a useful tool.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

How to create a Composer package from scratch

Available to Premium members only
  • avatar
  • 547 Views
  • 1 Like
  • 16 mins read
Preview image

A helper class, a small client wrapper or a set of validation rules often starts in one project and ends up copied into the next one. From that point the copies drift apart, a bug fixed in one of them stays open in the rest, and there is no version number to refer to when something changes.

Turning that code into a Composer package removes the copies. The requirements are modest, since a package is a directory containing a valid composer.json file, a Git repository hosting it, and a listing on Packagist that tells Composer where to find it.