Invoicing app in Laravel 9 using VILT stack – part 2

We continue from Part 1 where we created controllers and views for Customer and Item models; now, let’s move onto Invoice model and get the real stuff done. If you happened to land here randomly, then first go through the following articles chronologically since these are the prerequisite before you proceed here any further: Having … Read more

Invoicing app in Laravel 9 using VILT stack – part 1

In this article, we’ll build the invoicing app using Laravel 9 VILT (Vue, Inertia, Laravel, Tailwind) stack. If you want to develop this invoicing app in more traditional way using Bootstrap and jQuery, then refer to previous couple of articles. In order to continue here, you need to go through a couple of articles where … Read more

Invoicing app in Laravel 9 using Bootstrap and jQuery – Part 2

We continue from Part 1 where we created controllers and views for Customer and Item models; now, we’ll move onto Invoice model and get the real stuff done. If you happened to land here randomly, then first go through the following articles chronologically since these are the prerequisite before you proceed here any further: Having … Read more

Invoicing app in Laravel 9 using Bootstrap and jQuery – Part 1

We continue our journey of building the Invoicing app in Laravel 9. In order to continue here, you need to go through last couple of articles where we defined models, migrations and invoice template. Following are the links to those previous articles which are prerequisite before proceeding ahead in this article: So, let’s continue from … Read more

Invoicing app in Laravel 9 – migrations and models

With the knowledge we acquired in last few articles surrounding Laravel 9 ecosystem, let’s build something concrete – a kind of full-fledged business app. So, in next few articles, we’ll gradually build an Invoicing app using tech stacks available to Laravel 9. Well…let’s start the marathon. In this article we’ll create migrations and models for … Read more

Dynamic input fields using Livewire

In this tutorial, we’ll create dynamic input fields using Livewire, a full-stack framework for Laravel to make reactive components. We’ll use Laravel 9 for this tutorial, however any latest version of Laravel should also work. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that Composer and PHP 8 along with required … Read more

Dependent dropdown using Livewire in Laravel 9

In last couple of posts we used pure JS and Vue respectively in order to create dependent dropdown (dynamic select menu) in a Laravel 9 app. Now, let’s employ Livewire in Laravel 9 in order to achieve the similar results. For this article we’ll utilize the models and data created in a previous article. So, … Read more

One-to-many relationship in Laravel 9

In this article we’ll learn how to define models / tables in Laravel 9 with one-to-many relationship, one of the most common relationships between tables in a database. Then we’ll seed some data into these related tables and check the relationship functions. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that … Read more

Middleware and Component in Laravel app

Middleware and component are two handy tricks in Laravel to break down coding in simple re-useable chucks of code. ‘Middleware’ belongs to back-end side whereas ‘component’ is related to front-end side. As we have UI components like button, message pop-up, modal etc. which can be reused anywhere in layout, middleware represents a chunk of re-useable … Read more

Using through() function in Laravel to manipulate collection

In this tutorial we’ll look into through() function for manipulating data inside Laravel collection. As we’ve seen in previous article that map() and filter() are two important functions which are used to manipulate and filter data of a collection. However, these functions return Collection type and Collection does not have paginate() function (well, we need … Read more