Glossary

The tech concepts you should know in order to get a job as a Laravel developer.

  • Alpine.js is a lightweight JavaScript framework for adding interactivity directly in your markup. You write its behavior as HTML attributes such as x-data, x-show and @click, so you don't need a build step or a separate component layer. It's often described as "Tailwind for JavaScript": instead of building a single-page app, you add small bits of reactive behavior, like dropdowns, modals and tabs, to server-rendered pages. Because it's so small and fits naturally into Blade templates, it has become a popular choice in the Laravel ecosystem. Livewire bundles Alpine automatically, so any Livewire application, including one created with the Livewire starter kit, already has it available.

  • Laravel's Artisan is a command-line tool that comes as part of every Laravel application, and can be accessed by running php artisan from the root of any Laravel app. Artisan comes with a large list of commands that make it easy to do anything from creating models, controllers, migrating database tables or interacting with a database using the command line interface. In addition to the commands that are already provided, programmers can also create custom commands to simplify the process of interacting with each app from the command line.

  • Blade is a templating engine provided with Laravel. While we could use plain PHP inside HTML files, the markup would quickly become messy and hard to read. With Blade we can still loop through data in our views using @for, @foreach, @forelse or @while, echo data by using the mustache syntax {{ }}, or display data conditionally by using clear syntax such as @if, @elseif, @else and @unless. Blade also offers many more directives and the ability to build your own, and a robust inheritance system, which make Blade a very powerful, yet easy to understand, templating language.

  • Laravel Boost helps AI coding assistants write better Laravel code. It provides an MCP server with tools that let AI agents inspect your application, such as its database schema, routes, logs and configuration, along with version-specific guidelines and documentation for Laravel and its ecosystem packages.

  • A practice where developers on a team frequently merge their code changes into a repository they share. Automated tests and builds run on these changes to quickly identify and fix issues, ensuring the software remains stable and can be reliably built and deployed properly.

  • Cross-site request forgery (CSRF) is a type of attack in which a malicious website tricks a user's browser into submitting requests to your application without the user's knowledge. To protect against this, Laravel generates a CSRF token for each user session and checks that every POST, PUT, PATCH or DELETE request includes a matching token. Simply add @csrf inside your

    and Laravel will take care of the rest.

  • CSS (Cascading Style Sheets) is the primary language used in websites to describe the intended visual appearance of the site and its content. For example, it allows the web browser to determine what size text should be, what color the background of a heading should be, or the spacing between two elements on the page.

  • Laravel Cashier is a package that provides an easy to use and configurable interface to various billing services, such as Stripe or Paddle.

  • A Laravel Collection is a convenient wrapper around arrays, providing methods for manipulating the array data in useful ways.

  • Composer is PHP's dependency manager. It installs and updates the packages your project depends on, including Laravel itself, and keeps track of them in composer.json and composer.lock. Composer also handles autoloading, so your classes and installed packages are available without manual require statements.

  • Concerns in Laravel are simply a collection of traits – a language feature native to PHP. The term "concerns" comes from the programming design principle "separation of concerns." The authors of Laravel implement this design principle by using traits.

  • Laravel's core services are defined by a set of PHP interfaces called contracts. Contracts allow you to explicitly define dependencies for your classes. For example, a class that implements the Illuminate\Contracts\Mail\Mailer contract is required to provide an implementation for all of the methods needed for sending an email. Each of Laravel's contracts has a corresponding implementation provided by the framework.

  • Laravel Dusk is a browser testing package. It lets you write tests that control a real Chrome browser, clicking links, filling in forms and checking what appears on the page, to make sure your application works the way a user would experience it. Dusk uses ChromeDriver by default, so you don't need to install JDK or Selenium. Pest also offers built-in browser testing as an alternative.

  • Laravel Echo is a JavaScript library that makes it easy to subscribe to channels and listen for events broadcast by your Laravel application. It handles authentication and authorization for private and presence channels, so you can add real-time features such as notifications and live updates. Echo works with Laravel Reverb, Pusher and Ably, is installed via npm, and includes hooks for React and Vue (such as useEcho).

  • Eloquent is Laravel's object-relational mapper (ORM), which makes interacting with your database simple and expressive. Each database table has a corresponding "model" class that you use to query, insert, update and delete records using PHP instead of raw SQL. For example, User::where('active', true)->get(). Eloquent also makes it easy to define relationships between models, such as a user having many posts, and includes features like accessors, mutators, casting, scopes and soft deletes.

  • Laravel Envoy provides a clear and concise, Blade-like syntax to define common tasks run on remote servers.

  • Events let different parts of your application react to something that happened without being tightly connected to each other. For example, when an OrderShipped event is dispatched, separate listeners might send a confirmation email, update inventory and notify a shipping service. Listeners can also be queued to run in the background.

  • Facades provide a simple, static-looking interface to classes available in Laravel's service container. For example, Cache::get('key') looks like a static method call, but behind the scenes Laravel resolves the cache service from the container and calls the method on it. Facades keep code short and readable while remaining easy to test.

  • Flux is the official UI component library for Livewire, created by the author of Livewire. It provides polished, accessible components such as buttons, inputs, modals and dropdowns that are built with Tailwind CSS. A free set of components is used in Laravel's Livewire starter kit, and Flux Pro adds more advanced components for a fee.

  • Laravel Forge is a server provisioning and management tool for PHP applications. Server provisioning is the process of setting up a server and making it ready to be used. This includes installing and configuring all necessary software and applications, connecting it to middleware, networks and storage and finally deploying the application. Laravel Forge makes this process as well as the management of the server easy and convenient.

  • Laravel Fortify is a frontend-agnostic authentication backend. It provides the routes and logic for login, registration, password reset, email verification and two-factor authentication, but leaves the user interface entirely up to you. It's a good fit when you want Laravel's authentication features with your own custom frontend.

  • HTML (Hypertext Markup Language) is the primary language used to represent content on web pages. For example, it allows the web browser to determine which parts of the content are headings, which parts are paragraph text, and which parts should be formatted as tables.

  • Laravel includes a variety of global "helper" functions that make common tasks easier, such as route(), url(), config(), now() and dd(). Alongside these, the Str and Arr classes provide many methods for working with strings and arrays, including fluent string manipulation through Str::of().

  • Laravel Herd is a fast, native Laravel and PHP development environment for macOS and Windows. A single installer provides PHP, nginx, Node and the Laravel installer, and every project in your sites folder is automatically served at a .test domain. Herd Pro, the paid version, adds services such as databases, Redis and mail and log viewers.

  • Laravel Horizon provides a beautiful dashboard and code-driven configuration for Laravel's Redis-powered queues (see Redis). Horizon lets you easily monitor key metrics of your queue system, such as job throughput, runtime and failures, and all of your worker configuration is stored in a single, simple file that can be kept in source control.

  • Inertia.js is a library that connects a Laravel backend to a React, Vue or Svelte frontend without building a separate API. Your controllers return Inertia responses instead of Blade views, and Inertia renders the matching JavaScript page component with the data you pass it. This gives you the feel of a single-page application while keeping Laravel's routing, controllers and authentication. The React, Vue and Svelte starter kits are built on Inertia.

  • Laravel Cloud is a fully managed hosting platform for Laravel applications. You connect a Git repository and Cloud takes care of servers, scaling, databases, caching and deployments, with no infrastructure to configure. It sits alongside Forge, which manages servers you control, and Vapor, which deploys to your own AWS account.

  • Livewire is a full-stack framework for building dynamic, reactive interfaces using only PHP and Blade. Instead of writing a separate JavaScript frontend, you write Livewire components as PHP classes, and Livewire handles the communication between the browser and server for you. It bundles Alpine.js, which makes it easy to add small client-side touches, and it's one of the options offered by Laravel's starter kits.

  • Localization is a way to translate a website or web app into different languages, including local currencies and units of measurement. Laravel provides an easy way to retrieve strings in various languages using either the __ helper function or the @lang Blade directive, and supports pluralization for languages with different pluralization rules. New Laravel applications don't include a lang directory by default; you can create one by running php artisan lang:publish.

  • Middleware filters the HTTP requests that enter your application. Each piece of middleware can inspect or modify a request before it reaches your route, or the response on its way back. For example, the auth middleware redirects guests to the login page. Laravel ships with middleware for authentication, CSRF protection, rate limiting and more, and you can write your own.

  • Migrations are like version control for your database. Each migration is a PHP class that describes a change to your database schema, such as creating a table or adding a column, so every developer and server can recreate the same structure with php artisan migrate. Migrations can also be rolled back to undo changes.

  • Laravel Nova is an administration dashboard that is known for its great design and the ability to administer the app's database records using Eloquent, the Laravel ORM (Object-Relational Mapping).

  • Laravel Passport is a package that provides a full OAuth2 server implementation for your Laravel application. Because APIs typically authenticate with tokens rather than sessions, OAuth2 is a common standard for letting users and third-party applications access an API securely. Passport is the right choice when your application needs to issue tokens to third-party clients; for SPAs, mobile apps and simple API tokens, Laravel Sanctum is usually the simpler option.

  • Gates and policies are Laravel's tools for authorization: deciding whether a user is allowed to perform an action. Gates are simple closures, well suited to checks that aren't tied to a model. Policies are classes that group authorization logic around a specific model, such as whether a user can update or delete a post. They can be checked in controllers, Blade (@can) and middleware.

  • Queues let you move time-consuming tasks, such as sending emails, processing uploads or calling external APIs, out of the request and into the background. Each task is written as a job class and pushed onto a queue, where a worker process picks it up and runs it. This keeps your application fast for users.

  • React is a JavaScript library for building user interfaces out of reusable components. Each component combines its markup (written in JSX, an HTML-like syntax inside JavaScript) with its own logic and state, and React updates the page efficiently whenever that state changes. Created by Meta, it's one of the most widely used front-end tools, and it's one of the options offered by Laravel's starter kits. Choosing the React starter kit with laravel new sets up React with Inertia.js and TypeScript, so your Laravel routes and controllers can render React page components directly, without building a separate API.

  • Redis (RemoteDictionaryServer) is an in-memory key-value store used as a database, cache, and a message broker. It is a NoSQL database, which means it does not use structures such as tables, rows or columns, and it does not use statements such as SELECT, INSERT, UPDATE or DELETE. Instead, it uses data structures like strings, lists, sets, sorted sets, hashes, bitmaps and others to store data. Because Redis is an in-memory database (with available persistence options), it is also very fast and therefore ideal for caching, real-time comment streams or queue jobs.

  • The request lifecycle describes what happens from the moment a request (whether via HTTP or the console) enters a Laravel application until a response is returned to the user. Every request enters through public/index.php, which loads bootstrap/app.php to create the application instance. Here, the application's routing, middleware and exception handling are configured. The request is then converted into a Request object and passed through the global middleware to the router, which matches it to a route closure or controller. Any route-specific middleware runs, the route returns a response, and that response travels back out through the middleware before being sent to the user.

  • Laravel Reverb is Laravel's first-party WebSocket server, which brings real-time communication to your application. It works with Laravel's event broadcasting and Laravel Echo, so you can push updates such as notifications, chat messages or live dashboards to the browser instantly. Reverb uses the Pusher protocol and can be self-hosted and scaled horizontally.

  • Routing is how Laravel maps an incoming URL and HTTP method to the code that should handle it. Routes are defined in files like routes/web.php using methods such as Route::get() and Route::post(), and can point to a closure or a controller. Laravel also supports route parameters, named routes, route groups and route model binding.

  • Laravel Sail is a lightweight command-line interface for running a Laravel application with Docker. It gives you a ready-made development environment, with PHP, a database, Redis and other services, without installing any of them directly on your machine. Commands like sail up and sail artisan wrap the underlying Docker commands to keep things simple.

  • Laravel Sanctum is a lightweight authentication package for single-page applications, mobile apps and simple token-based APIs. SPAs are authenticated with Laravel's standard session cookies, while API tokens can be issued to users and limited with "abilities". For most applications, Sanctum is a simpler choice than a full OAuth2 server like Passport.

  • Laravel Scout is a simple, driver-based solution for adding full-text search to your Eloquent models. Scout automatically keeps your search indexes in sync with your model records. It supports Algolia, Meilisearch and Typesense, as well as database and collection drivers that need no external service. You can also write a custom driver to plug in your own search implementation.

  • Seeders fill your database with data, while factories generate realistic fake model instances for testing and development. Used together, they let you quickly set up a database with sample users, posts or orders by running php artisan db:seed, and create test data in a single line, such as User::factory()->count(10)->create().

  • Laravel's service container, also known as the Inversion Of Control (IoC) container, Application container or Dependency Injection (DI) container, manages class dependencies and performs dependency injections. A dependency exists whenever one class uses (or depends on) another class or an interface, and it cannot do its work without them. The service container manages these dependencies and makes sure everything works as intended.

  • Service providers are the central place where a Laravel application is bootstrapped. Laravel itself, as well as many packages, use service providers to register services in the service container, along with event listeners, middleware and routes. Each provider has a register method, for binding things into the container, and a boot method, which runs once all providers are registered. New applications include a single AppServiceProvider, and any additional providers you create are listed in bootstrap/providers.php.

  • Laravel Socialite is a package that makes it easy to set up and use OAuth authentication in a Laravel application.

  • Laravel Spark is a package that adds subscription billing to your application. It provides a ready-made billing portal where customers can subscribe to plans, update payment methods, download invoices and cancel or change their subscriptions. Spark works with Stripe or Paddle and can bill individual users or teams.

  • Laravel's starter kits give a new application a working foundation, including login, registration, password reset and a settings page, so you can start building features right away. Running laravel new lets you choose a React, Vue, Svelte or Livewire kit, each styled with Tailwind CSS.

  • Tailwind CSS is a utility-first CSS framework: instead of writing custom stylesheets, you style elements by combining small, single-purpose classes such as flex, p-4 or text-lg directly in your HTML. It's the default styling tool in all of Laravel's starter kits and pairs naturally with Blade, Livewire and Inertia.

  • Laravel Telescope is a debug assistant package that allows to debug and monitor various aspects of Laravel application, such as exceptions, notifications, scheduled tasks, variable dumps and others.

  • Tinker is a REPL (Read, Evaluate, Print, Loop) interactive tool that is included with every Laravel installation. Like Ruby's IRB, Tinker allows programmers to interact with their Laravel application and see the output of their actions.

  • Valet is a Laravel development environment for Mac minimalists. Using Homebrew and a few bundled applications, it serves your Laravel projects (and also those in WordPress, Statamic, and more) with almost no configuration on your end. Laravel Herd, which also runs on Windows, offers a similar experience as a native app and has largely become the recommended option.

  • Laravel provides a powerful way to validate incoming data using simple, readable rules such as required, email or max:255. Validation can be done directly in a controller with $request->validate(), or moved into a dedicated Form Request class, which keeps controllers clean and can also handle authorization. When validation fails, Laravel automatically redirects back with error messages.

  • Laravel Vapor is an auto-scaling, serverless deployment platform developed specifically for Laravel, powered by AWS Lambda. For fully managed hosting, see Laravel Cloud.

  • Vite is the modern frontend build tool Laravel uses to bundle and compile JavaScript and CSS. It offers near-instant hot module replacement during development, so changes appear in the browser without a full page reload. Laravel's Vite plugin and the @vite Blade directive make it simple to include your assets. Vite replaced Laravel Mix as the default in 2022.

  • Vue.js is a progressive JavaScript framework for building user interfaces, the "view" layer of an application. Its approachable syntax and gentle learning curve make it a popular front-end choice, and it's one of the options offered by Laravel's starter kits. When you create a new application with laravel new and choose the Vue starter kit, Laravel sets up Vue with Inertia.js, so your Laravel routes and controllers can render Vue page components directly, without building a separate API.