How To Install Laravel Filament V3 In 10 Minutes Step By Step

image
image
image
image
image
image
image
image
How to Install Laravel Filament v3 in 10 Minutes (Step-by-Step)

How to Install Laravel Filament v3 in 10 Minutes (Step-by-Step)

Filament is a powerful admin panel builder for Laravel, and Filament v3 brings major improvements with better customization, performance, and developer experience. In this guide, you'll learn how to install and configure Laravel Filament v3 from scratch in less than 10 minutes.

🚀 Prerequisites

Before you begin, make sure you have:

  1. PHP >= 8.1
  2. Composer
  3. Laravel >= 10
  4. A database (MySQL, PostgreSQL, SQLite, etc.)
  5. Node.js (optional for frontend styling)

✅ Step 1: Create a New Laravel Project

If you don’t already have a Laravel project, run this command:

composer create-project laravel/laravel filament-demo

Move into your project folder:

cd filament-demo

✅ Step 2: Set Up Your Database

Update your .env file with your database credentials:

DB_DATABASE=filament_demo
DB_USERNAME=root
DB_PASSWORD=

Then run the migration:

php artisan migrate

✅ Step 3: Install Filament v3

Use Composer to install Filament:

composer require filament/filament:"^3.3" -W

✅ Step 4: Publish Filament Admin Panel

Generate the Filament panel files and register your first admin panel:

php artisan filament:install --panels

You'll be asked some configuration questions. You can use the default values or customize them.

✅ Step 5: Create an Admin User

Now create a user who can log into the Filament admin panel:

php artisan tinker

Then run:

use App\Models\User;
use Illuminate\Support\Facades\Hash;

User::create([
'name' => 'Admin User',
'email' => 'admin@example.com',
'password' => Hash::make('12345678'),
]);


✅ Step 6: Access the Filament Admin Panel

Start your local development server:

php artisan serve

Now visit the Filament dashboard:

http://localhost:8000/admin/login

Login with:

  1. Email: admin@example.com
  2. Password: 12345678

🎉 Congratulations! You've successfully set up Laravel Filament v3.