Laravel collection manipulation, filtering and pagination

In this tutorial we’ll look into a couple of important functions to manipulate or filter out data from a Laravel collection along with their impact on pagination. First, we’ll setup a Laravel 9 app with relevant data, routes and view, then we’ll use collection’s map() and filter() functions to demonstrate their functionality and pagination behavior … Read more

Laravel – which front to choose?

There was time in webapp development when employing Bootstrap and jQuery at frontend were the most favored options. Then there were heavyweight JS frameworks like Angular, React, Vue to handle interactivity and making webapps’ UI reactive – this gave rise to SPA (Single Page Application). SPAs are actually webapps but behave more like desktop applications … Read more

File upload in Laravel 9 app (VILT stack) – Basic tutorial

In this tutorial, we’ll implement the basic capability to upload file in Laravel 9 app based on VILT (Vue Inertia Laravel Tailwind) stack. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules … Read more

Laravel 9 tutorial using Breeze

In this tutorial we’ll create Laravel 9 CRUD app using default Breeze starter kit. Laravel 9.x requires a minimum PHP version of 8.0. This tutorial assumes that you are using Linux, MacOS or WSL on Windows and Node.js, Composer and PHP 8 along with required modules i.e bcmatch, sqlite, mbstring, xml, zip, gd, mcrypt are … Read more

Deployment of Laravel app on DigitalOcean / Ubuntu server

In this tutorial, we’ll learn how to deploy Laravel 8 app on DigitalOcean droplet. This tutorial assumes that you have already set up the droplet server using Ubuntu 18.04 LTS (any other Ubuntu version should do just fine) and installed MySQL, Nginx, PHP7.4 (Laravel 8 requires PHP 7.3+ version) along with Composer. And you’ve ssh’d … Read more

Laravel development environment on MX Linux from repositories

In this article we’ll setup Laravel 8 development environment onto MX Linux box. Since MX Linux is based on Debian, the instructions herein, though untested, may still be valid for any Debian based Linux. Unlike previous article where we used Bitnami Lamp bundled software, here we’ll use repositories to individually install all the components required … Read more

Laravel 8 development setup in MX Linux

In this article we’ll setup Laravel development environment in MX Linux. But why MX Linux? The simple answer is: ‘It works’. If you happen to visit distrowatch.org then you’ll get yet another reason: ‘It tops’ the good ole chart. Believe me I’ve tested and used dozens of Linux distros but MX Linux really shines as … Read more

Using Vue-Multiselect in Laravel 8 Inertia.js app

(Note: This article has been updated with Breeze starter kit in place of Jetstream.) In this tutorial we’ll use vue-multiselect (suadelabs/vue3-multiselect) package to insert searchable select field in a Laravel 8 app using VILT (Vue.js, Inertia.js, Lavarel, Tailwind) stack. Assuming that the composer is installed, enter the following command to create new Laravel 8 project: … Read more

Using template in PHPWord

In this tutorial we’ll use template capability of PHPWord library. Sometimes you just want to generate a document by changing few fields in it. In this case, using template is suitable than generating whole document programmatically. Let’s build a Laravel 8 app which outputs docx file using template. You can start by creating a fresh … Read more