Laravel 12.x & Filament 3.x Documentation

website·Indexed 30 days ago

https://docs4me.kr

Comprehensive guides for Laravel 12.x and Filament 3.x, covering core framework features like Eloquent relationships, Blade templating, Service Container, and Cashier (Stripe/Paddle). Includes detailed documentation for Filament 3.x Actions, Form components, and core concepts such as Blade components, icons, and color palettes.

Tokens
470.7K
Snippets
3.2K
Records
3.3K
Agent score
49%

What's inside Laravel

  1. Overview of Livewire Component Lifecycle Hooks

    Livewire provides several lifecycle hooks that allow developers to execute code at specific points during a component's existence, such as initialization, property updates, and rendering.
    Hook MethodDescription
    mount()Called when the component is first created
    hydrate()Called when the component is re-hydrated at the start of subsequent requests
    boot()Called at the start of every request (both initial and subsequent)
    updating()Called before a component property is updated
    updated()Called after a property has been updated
    rendering()Called before render() is invoked
    rendered()Called after render() has been invoked
    dehydrate()Called at the end of every component request
    exception($e, $stopPropagation)Called when an exception occurs
  2. Overview of Laravel Pint

    Laravel Pint is an opinionated PHP code style fixer for minimalists, built on top of PHP CS Fixer. It ensures code style remains clean and consistent across a project. It comes pre-installed in all new Laravel applications and follows Laravel's subjective coding style by default.
  3. Overview of Laravel Logging Channels and Drivers

    Laravel uses a channel-based logging system powered by the Monolog library. Each channel defines how and where log information is recorded. The logging behavior is configured in config/logging.php.
  4. Overview of Filament Infolists

    The Filament Infolists package allows developers to render read-only lists of data for specific entities. It is used within the Panel Builder for App Resources and Relation Managers, as well as in Action Modals and custom Livewire applications.
  5. Introduction to Laravel Mix for asset compilation

    Laravel Mix is a flexible API wrapper for webpack that allows developers to define build steps for CSS and JavaScript preprocessors in Laravel applications. It simplifies the process of compiling and minifying assets through method chaining, removing the need to write complex webpack configurations manually. While Mix is provided, it is optional, and developers may use any asset pipeline tool they prefer.
    mix.js('resources/js/app.js', 'public/js')
        .postCss('resources/css/app.css', 'public/css');
  6. Overview of Filament Panels

    Panels in Filament serve as the top-level containers for building administration interfaces. They allow developers to integrate various features including pages, resources, forms, tables, notifications, actions, info-lists, and widgets. Every panel includes a default dashboard capable of hosting statistics, charts, and tables.
  7. Overview of Laravel Fortify

    Laravel Fortify is a frontend-agnostic authentication backend implementation for Laravel. It registers the necessary routes and controllers for common authentication tasks such as login, registration, password resets, and email verification. Unlike Laravel Starter Kits, Fortify does not provide a user interface; it only provides the backend logic. Developers must create their own UI to send requests to the routes registered by Fortify.
  8. Overview of Laravel Homestead

    Laravel Homestead is a legacy, pre-packaged Vagrant box that provides a complete PHP development environment (including Nginx, MySQL, Redis, etc.) without requiring server software to be installed directly on the host machine. It is compatible with Windows, macOS, and Linux. Note that it is no longer actively maintained; Laravel Sail is recommended as a modern alternative.
  9. Overview of Filament Blade Components

    Filament provides a set of core Blade components designed to ensure a consistent and maintainable foundation across all interfaces. These components are available for use within your own application and when developing Filament plugins. The available components are categorized by their primary use case: general UI, actions, forms, and tables.
  10. Overview of Laravel Precognition

    Laravel Precognition enables "real-time" validation in frontend JavaScript applications by predicting the results of future HTTP requests. When a "precognitive request" is received, Laravel executes all route middleware, resolves controller dependencies, and performs Form Request validation, but it does not execute the actual controller method. This allows the frontend to validate input against backend rules without duplicating logic.
  11. Overview of Eloquent Collections

    All Eloquent methods that return multiple model results (such as get() or relationship accessors) return an instance of Illuminate\Database\Eloquent\Collection. Because this class extends the base Laravel Collection, it inherits all standard collection methods (map, reduce, filter, etc.) while providing additional methods specifically for Eloquent models. Eloquent collections are iterable and can be used in foreach loops.
    use App\Models\User;
    
    // Basic iteration
    $users = User::where('active', 1)->get();
    foreach ($users as $user) {
        echo $user->name;
    }
    
    // Using inherited collection methods (reject and map)
    $names = User::all()->reject(function (User $user) {
        return $user->active === false;
    })->map(function (User $user) {
        return $user->name;
    });
  12. Overview of Laravel MongoDB package features

    The mongodb/laravel-mongodb package extends Laravel's capabilities to support MongoDB-specific features:

    • Eloquent: Store models in MongoDB collections with support for embedded relationships and raw aggregation pipelines.
    • Query Builder: Support for complex MongoDB queries.
    • Cache Driver: Optimized using MongoDB TTL indexes for automatic expiration of cache items.
    • Queue Driver: Ability to dispatch and process queue jobs using MongoDB.
    • Filesystem: Support for GridFS file storage via the Flysystem GridFS adapter.