Posts

Showing posts with the label Create Resources

Creating Resources in Filament (Laravel Framework)

Filament is a Laravel-based framework that provides an intuitive admin panel for managing your application. One of its core features is the ability to create resources that serve as a bridge between your database and the admin interface. In this guide, we’ll walk you through the process of creating and customizing resources in Filament. What Are Filament Resources? Filament resources are essentially classes that define how your database models are displayed, managed, and interacted with in the admin panel. They include configurations for: CRUD operations (Create, Read, Update, Delete). - Forms for data entry. - Tables for data display. Pre-requisites Before starting, ensure you have: 1. Laravel installed and configured. 2. The Filament package installed. If not, run: composer require filament/filament 3. A database migration and model already set up for the entity you want to manage. Step 1: Create a New Resource To generate a resource, use the following Artisan command: php artisan ma...