Skip to main content

Install Filament PHP for a New Laravel Project

Filament is an elegant TALL stack (Tailwind CSS, Alpine.js, Laravel, and Livewire) admin panel for Laravel applications. In essence, it allows developers to rapidly set up administrative interfaces for their applications.

In this article, I will guide you step by step to install Filament 3 for a new Laravel project.

Step to Install and Get Filament Running

Install latest Laravel

composer create-project laravel/laravel tlsnippets
cd tlsnippets

Set database in .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=tlsnippets
DB_USERNAME=root
DB_PASSWORD=

Create required tables

php artisan migrate

Install latets filement

composer require filament/filament:"^3.0-stable" -W

Create admin panel

php artisan filament:install --panels

Add admin user

php artisan make:filament-user

Then you can use the new user to access the admin panel at /admin.

For the next step you can visit https://filamentphp.com/docs/3.x/panels/installation.

By continuing to use the site, you agree to the use of cookies.