Category: PHP

PHP tutorials and code snippets to help beginners and advance users. PHP web store hosting services and development.

Laravel 12 - Spatie Laravel Query Builder 0

Clean, Powerful API Filtering with Spatie Query Builder

Build flexible, readable, and secure query filters across multiple Laravel models — no more bloated controllers. Why Spatie Query Builder? If you’ve built a Laravel API, you’ve almost certainly written something like this in...

How to install and configure Apache2 on WSL2? 0

How to install and configure Apache2 on WSL2?

I hope you already have WSL2 installed and enabled. So, setting up Apache2 on WSL2 (Windows Subsystem for Linux 2) involves a few steps. Below are the detailed instructions to install and configure Apache2...

DreamHost Web Hosting - Shared - VPS Hosting 0

DreamHost Web Hosting

DreamHost a web hosting company, founded in 1997. It is offering sort of hosting services, including shared, VPS, dedicated and WordPress hosting. It is reliable and affordable hosting provider to small and large businesses...

First date, last date of last month and first, last date of last week 0

Working with dates in PHP.

In this article, I am going to show you how we can get specific dates like get start date for last week, end date of last week, first day of last month and last...

Laravel 12 - Spatie Laravel Query Builder 0

Boolean field validation in Laravel

In Laravel, we can write validation rules in custom classes to validate form fields. These classes are extends from FormRequest. Sometimes, you can get a Boolean field value as string like ‘true’ or ‘false’...

Laravel 12 - Spatie Laravel Query Builder 0

How to use whereHas() and with() in laravel 8?

Laravel is very famous and widely used PHP Framework. Nowadays, I am doing development in Laravel along with other RoR and Java projects. I was working on a Laravel 8 project in which I...