Laravel Framework

What is Laravel Exploring the Major Concepts of Laravel Version 10 and the Skills Required

By the Domain India teamPublished 8 min read
Knowledge base article
Contents (8 sections)

Laravel is the most popular PHP framework for building web applications, from a simple company site with a contact form to a full SaaS product. It gives you a clean structure and ready-made tools for the jobs every application needs: routing, database access, sign-in, email and background jobs. This guide explains Laravel's core concepts as they work in current versions, the skills you need to be productive, and where a Laravel app can run.

Key takeaways

Laravel is an open-source PHP framework built around the Model-View-Controller pattern. Its core concepts are routing, middleware, controllers, the Eloquent ORM, Blade templates, migrations, Artisan and the service container. Laravel 10, the version this article once described, has been out of security support since February 2025, so start new projects on the latest release. To work well with it, you need solid modern PHP, SQL basics, Composer and Git.

1. What Laravel is, and which version to use

Laravel was created by Taylor Otwell in 2011 and is free and open source. It sits on top of PHP and a set of well-tested components, many from Symfony, and adds a consistent, readable way of putting them together.

Laravel releases a new major version about once a year: Laravel 10 in 2023, 11 in 2024 and 12 in 2025. Each major version gets bug fixes for 18 months and security fixes for two years. That means:

VersionReleasedSecurity fixes untilUse it for
Laravel 10February 2023February 2025 (ended)Upgrade existing apps; don't start new ones
Laravel 11March 2024March 2026 (ended)Upgrade existing apps
Laravel 12 and laterFebruary 2025 onwardsSee laravel.comNew projects: use the newest release

Check the release notes on laravel.com before you start. Laravel 12 needs PHP 8.2 or newer, and later releases may raise that.

Since Laravel 11 the project skeleton is slimmer: there is no app/Http/Kernel.php, and middleware, exceptions and routing are configured in bootstrap/app.php. Older tutorials that tell you to edit the HTTP kernel were written for Laravel 10 and earlier.

2. The request lifecycle in one picture

Every request to a Laravel app follows the same path:

  1. Entry point.
    The web server sends the request to public/index.php.
  2. Middleware.
    The request passes through middleware, which can check sign-in, CSRF tokens or rate limits and stop it early.
  3. Routing.
    The router matches the URL and HTTP method to a controller action or closure.
  4. Controller.
    The controller validates input, calls models and services, and prepares data.
  5. Response.
    A Blade view, JSON or a redirect goes back through the middleware to the browser.

Knowing this path makes debugging much easier: most "why is my page blank" problems sit at one of these five steps.

3. The core concepts

Routing
Routes in routes/web.php and routes/api.php map URLs to code, for example Route::get('/orders/{order}', [OrderController::class, 'show']);. Route model binding loads the order for you.
Middleware
Code that runs before or after a request, such as auth to require sign-in or throttle to limit requests.
Controllers
Classes that handle requests. Keep them thin: validate, call a model or service, return a response.
Eloquent ORM
Each database table has a model class. Order::where('status', 'paid')->latest()->get() reads like the question you are asking. Relationships such as hasMany link models.
Blade templates
Laravel's template language, with layouts, components and automatic escaping of output to prevent cross-site scripting.
Migrations and seeders
Version-controlled database changes, run with php artisan migrate. Seeders fill the database with test or starter data.
Artisan
The command-line tool: php artisan make:model Order -m creates a model and its migration.
Service container
Laravel's dependency injection system. Type-hint a class in a constructor and Laravel builds it for you, which keeps code testable.

Beyond these, most real applications also use:

  • Validation, with form request classes that reject bad input before your controller runs.
  • Authentication, through the official starter kits (React, Vue or Livewire), which set up registration, sign-in and password reset.
  • Queues and events, to move slow work such as sending email out of the request.
  • Testing, with Pest or PHPUnit, so you can change code without fear.

4. A tiny example

A route, a controller and a Blade view that list paid orders:

php
// routes/web.php
use App\Http\Controllers\OrderController;

Route::get('/orders', [OrderController::class, 'index'])->middleware('auth');
php
// app/Http/Controllers/OrderController.php
namespace App\Http\Controllers;

use App\Models\Order;

class OrderController extends Controller
{
    public function index()
    {
        $orders = Order::where('status', 'paid')->latest()->paginate(20);

        return view('orders.index', ['orders' => $orders]);
    }
}
blade
{{-- resources/views/orders/index.blade.php --}}
@foreach ($orders as $order)
    <p>#{{ $order->id }} for {{ $order->customer_name }}</p>
@endforeach
{{ $orders->links() }}

The {{ }} syntax escapes output, so a customer name containing HTML can't inject script into the page.

5. Skills you need

Modern PHP
Classes, namespaces, type declarations, closures and exceptions. Laravel code uses PHP 8 features throughout.
MVC and HTTP
How requests, responses, status codes, cookies and sessions work.
SQL and databases
Tables, keys, joins and indexes. Eloquent is easier when you know the SQL it writes.
Composer
PHP's package manager, used to install Laravel and every package you add.
Git
Version control for your code and for deployment.
Front-end basics
HTML and CSS, plus JavaScript if you choose the React or Vue starter kit.

A sensible learning path: build a small CRUD app (a task list or product catalogue) with a starter kit, add validation and tests, then deploy it. The official Laravel documentation and Laravel Bootcamp are the best free starting points.

6. Where a Laravel app can run

Laravel runs anywhere modern PHP runs, but not every feature works everywhere:

Works on shared hosting
  • Web routes, controllers, Eloquent and Blade
  • MySQL databases from the control panel
  • File-based cache and sessions, the sync queue
  • The scheduler, run by a one-minute cron job
Needs a VPS
  • Queue workers (queue:work) and Horizon
  • Redis, Octane and Reverb websockets
  • Running Composer on the server

On Domain India shared hosting, Composer can't run on the server because the PHP functions it needs are disabled, so you build the project on your computer and upload it with vendor/. The full walkthrough is in Laravel on cPanel and DirectAdmin, and the beginner route is in how to install Laravel on shared hosting. On our cPanel server, new accounts default to PHP 8.3; you can change it per domain with the PHP version guide.

7. Where Domain India fits

Your Laravel appGood fitWhy
Small business site, portal or CRUD appcPanel or DirectAdmin shared hostingRuns vanilla Laravel with MySQL and the cron scheduler
App with queue workers, Redis or websocketsVPSSelf-managed with root access, so you run any process you need
Containerised appApp PlatformPHP apps deploy with a Dockerfile; only Node.js is detected automatically
cPanel Starter
₹125/mo + GST
  • 25 GB NVMe SSD Storage
  • 50 GB Monthly Bandwidth
  • 1 Website
  • 10 Email Accounts
See plan details
VPS Starter
₹552.65/mo + GST
  • 1 vCPU
  • 2 GB DDR4 RAM
  • 64 GB NVMe SSD Storage
  • 2 TB Monthly Bandwidth
See plan details

The cards show Domain India list prices on 19 September 2026, excluding 18% GST. Compare cPanel hosting, VPS servers and the App Platform.

8. Frequently asked questions

What is Laravel used for?

Laravel is a PHP framework for building web applications: business websites, customer portals, online stores, APIs and SaaS products. It provides routing, database access, authentication, email, queues and testing tools, so developers don't build them from scratch.

Is Laravel 10 still supported?

No. Laravel 10 received security fixes until February 2025, and Laravel 11 until March 2026. Upgrade existing apps and start new projects on the latest Laravel release listed on laravel.com.

Which PHP version does Laravel need?

Laravel 12 needs PHP 8.2 or newer, and later releases may require more. On Domain India's cPanel server, new accounts default to PHP 8.3, and you can choose the version per domain.

Can I run Laravel on Domain India shared hosting?

Yes, for standard Laravel apps using Blade, Eloquent, MySQL, file-based cache and a cron-driven scheduler. Composer can't run on the server, so build locally and upload the vendor folder. Queue workers, Redis, Octane and Reverb need a VPS.

Do I need to know PHP before learning Laravel?

Yes. Laravel is written in PHP and uses classes, namespaces, type declarations and closures everywhere. Learn modern PHP and basic SQL first, then Laravel will make much more sense.

What is Eloquent in Laravel?

Eloquent is Laravel's object-relational mapper. Each database table has a model class, and you query and save rows through that class instead of writing SQL by hand, with relationships between models defined as methods.

Ready to deploy your first Laravel app? Read Laravel on cPanel and DirectAdmin, then choose cPanel hosting for a standard app or a VPS when you need workers and Redis.

Not sure where your Laravel app should run?

Tell us what your app uses, and our support team will suggest shared hosting, a VPS or the App Platform.

Ask our team

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app
What Is Laravel? Core Concepts & Skills | Domain India