Laravel

Building Dynamic Web Applications with Laravel and HTMX Members Public

In recent years, the way we build web applications has undergone a significant transformation. Traditional full-page reloads are giving way to dynamic, single-page applications that provide a smoother and more interactive user experience. Laravel, a popular PHP framework, has kept pace with these changes and offers seamless integration with modern

Ashutosh Kukreti
Laravel

Laravel (10) Pivots: The Secret Sauce for Powerful Relationships You Won't Believe! Members Public

In Laravel, pivot tables serve as intermediary database tables that facilitate many-to-many relationships between two other tables. Acting as connectors, they store additional information about the relationship itself. Pivot tables contain foreign keys referencing the primary keys of the related tables, along with any extra columns necessary for relationship-specific data.

Ashutosh Kukreti
Laravel

All about Controllers in Laravel 10 Members Public

What are Controller?In Laravel, Controllers are PHP classes that handle incoming HTTP requests and manage the application's response to those requests. They act as an intermediary between the Model (data) and the View (UI) in the MVC (Model-View-Controller) pattern. Controllers contain methods that define the actions that can be

Ashutosh Kukreti
Laravel

Date Scopes in Laravel (10) Members Public

In Laravel, date scopes allow you to define reusable methods on your model that can be used to query records based on a specific date range. For example, you can define a scope to retrieve all records that were created between a given start and end date. Here's an example

Ashutosh Kukreti
Laravel

What are Sorting Middleware in Laravel and where do we use it Members Public

Sorting middleware in Laravel is used to specify the order in which middleware should be executed for a particular request. This can be useful when you have multiple middleware that need to be executed in a specific order. To sort middleware, you can use the middlewarePriority property in the App\

Ashutosh Kukreti
Laravel

Laravel 10 Middleware in 5 minutes Members Public

Middleware in Laravel is a powerful feature that allows you to filter incoming HTTP requests before they reach your application's routes. Middleware can be used to perform a wide range of tasks, such as authentication, authorization, input validation, and logging. Essentially, middleware acts as a middleman between your application's routes

Ashutosh Kukreti
Laravel

Understand Routing in Laravel 10 (Part-2) Members Public

This is in continuation of our previous post of Laravel Routes Part 1. Regular Expression in RoutesIn Laravel routes, you can use regular expression constraints to specify more complex matching patterns for your route parameters. Regular expression constraints are specified by adding a regular expression pattern inside curly braces {} after

Ashutosh Kukreti
Laravel

Understand Routing in Laravel 10 (Part-1) Members Public

In Laravel, routing refers to the process of defining the routes that your application will respond to. When a request is made to your application, Laravel's routing system determines which route matches the request and calls the corresponding controller method or closure to generate the response. Routes in Laravel can

Ashutosh Kukreti
Laravel