How to check your Laravel database connection

Published April 16, 2021; last updated on April 22, 2021
How to check your Laravel database connection

Laravel is a great framework for rapid application building. It allows you to easily connect to a database. If you’re developing locally, chances are that you need to confirm that the application is connected to a database, for example when you’re debugging something.

In this tutorial I’ll show you how to check which database your Laravel app is connected to.

There is a simple code snippet to check the name of the current database connection,

How to use Tailwind CSS v2.1 JIT compiler with Laravel Mix

Published April 12, 2021; last updated on April 13, 2021
How to use Tailwind CSS v2.1 JIT compiler with Laravel Mix

Last week Tailwind CSS released version 2.1.0. One of the best features of the release is the fact that the new Just-In-Time (JIT) compiler is now included in the official build. In this tutorial I’ll show you how to use the Tailwind CSS JIT compiler with Laravel Mix. Best of all is that it takes less than two minutes🚀

The compiler is a huge step forward in the development of Tailwind CSS. There are several important advantages,

Install Tailwind CSS & SASS with Laravel Mix (2021)

Published March 12, 2021; last updated on April 10, 2021
Install Tailwind CSS & SASS with Laravel Mix (2021)

Laravel Mix is a great tool for defining Webpack build steps for several common CSS and JavaScript pre-processors. Personally I’m a huge fan of TailwindCSS and I use it in a lot of projects. For writing plain CSS I prefer to use SASS (SCSS). Here I’ll show you how to set up your Laravel application with SASS and Tailwind CSS.

For this tutorial I already have a local Laravel application installed with Laravel Valet.

How to fix Laravel command not found on macOS for bash/zsh

Published March 2, 2021
How to fix Laravel command not found on macOS for bash/zsh

If you’re developing Laravel applications, you’re very likely to use a local development installation. Installing Laravel is not very simple, especially if you’re not familiar with composer or with the command line. In this tutorial, I’ll show you a simple way that will most likely fix the problem.

For this tutorial, I’ll assume that you’ve already got Composer installed (globally).

Before starting, you should determine whether you’re using bash or zsh as a command line shell.