Introduction Laravel is a PHP web application framework that provides a simple and elegant way to organize and handle routes in a web application. In this tutorial, we will cover the basics of routing in Laravel and dive into some of the more advanced features that it offers. What is Routing? First, let’s start with […]
Laravel 9
3 Examples of applying order by on Eloquent HasMany Relationship
Eloquent is a powerful ORM (Object-Relational Mapping) tool that allows developers to interact with databases in a more convenient and elegant way. One of the most powerful features of Eloquent is its ability to handle relationships between tables. In this article, we will explore how to order Eloquent’s hasMany relationship by a specific column in […]
3 examples to Pass Global Variables to Blade: View Share and Composer
Overview: Laravel is a powerful PHP framework that allows developers to quickly and easily create web applications. One of the most important features of the framework is the ability to easily share data between different parts of the application. This can be accomplished by using Service Providers, which are classes that can be used to […]
How to create Laravel Application using WSL 2, Docker & Sail on Windows 10 or 11
This tutorial will give you steps on how to create Laravel application using Laravel Sail on WSL 2 (Ubuntu 20 or 22) on Windows platform. I assume you already have Docker Desktop installed on your Windows OS. Next follow the steps to get Ubuntu 22.04 up running with WSL. Install/configure WSL2 on Windows Open windows […]
How to get current Request URL or Route in Laravel Framework
Get very useful tricks to play with laravel requested url, this tutorial provides solution to find Current Request URL, mach Current URL to given String or pattern and few more useful functions from laravel framework
Beginners guide to use Redis with Laravel Framework
What is Redis? Redis is an open source in memory data structure store mostly use as a database, cache or a message broker on backend, Redis is advanced it uses key value storage mechanism to store the data, if you are thinking to use Redis on your project then it’s an outstanding open-source choice available […]