Ashutosh Kukreti

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

Laravel (10) working and Concepts in Details Members Public

As we already knew, Laravel is a web application framework that works on top of the PHP language. It provides a modular, flexible, and easily maintainable structure for building modern web applications. Here is how Laravel works: Routing: Laravel's routing system is responsible for handling incoming requests to the application.

Ashutosh Kukreti
Laravel

Laravel 10 Directory Structure in 2 minutes Members Public

A typical Laravel project structure will look like app/ Http/ Controllers/ Middleware/ Requests/ Providers/ bootstrap/ config/ database/ factories/ migrations/ seeds/ public/ resources/ assets/ js/ sass/ lang/ views/ routes/ storage/ app/ framework/ logs/ tests/ vendor/ .env artisan composer.json composer.lock package.json README.md Laravel follows a specific directory structure

Ashutosh Kukreti
Laravel

How to Install Laravel 10 using Laravel Sail Members Public

_____ / ____| | | __ __ _ _ __ ___ ___ ___ ___ | | |_ |/ _` | '_ ` _ \ / _ \/ __/ __| | |__| | (_| | | | | | | __/\__ \__ \ \_____|\__,_|_| |_| |_|\___||___/___/ You can install Laravel using Laravel Sail, a lightweight command-line interface for interacting with Laravel's default Docker development environment. Follow the steps below to install Laravel using Sail: Install Docker on your system. You can download Docker from the official website: https://www.docker.com/products/docker-desktopOpen a terminal

Ashutosh Kukreti
Laravel