Proyek ini adalah implementasi dari tugas pertama Sistem Basis Data (SBD) menggunakan Laravel. This project implements CRUD operations and an admin panel using the Laravel framework and the Filament admin template. For more details about the case study, please refer to case example.
- CRUD (Create, Read, Update, Delete) operations for the main entity.
- User input validation.
- Middleware for user authentication.
- Admin panel using Filament template.
- Database seeder for initial admin user.
The database schema for this project is visualized in the following diagram: For a detailed view and interaction with the schema, please refer to the DrawSQL diagram.
Laravel is a PHP framework that is elegant and expressive, designed to make web development a joyful and creative experience for developers. For more information about Laravel, visit About Laravel.
-
Clone this repository to your local machine.
git clone https://github.com/IlhamGhaza/laravel-tugas1sbd-filament.git
-
Navigate to the project directory.
cd laravel-tugas1sbd-filament
-
Install dependencies using Composer.
composer install
-
Copy the
.env.example
file to.env
.cp .env.example .env
-
Generate the application key.
php artisan key:generate
-
Configure your database in the
.env
file. -
Run migrations to create the database tables.
php artisan migrate
-
Run the application.
php artisan serve
-
Visit the admin panel at
http://127.0.0.1:8000/admin
-
Use the following credentials to log in:
- Email:
ilham@admin.com
- Password: 12345678
- Email:
Note: You can edit in database seeder
database\seeders\DatabaseSeeder.php
If Composer troubles run this command:
composer update
composer dump-autoload
This project utilizes the Filament admin template for creating an intuitive and user-friendly admin panel. Filament is a powerful tool for quickly generating administrative interfaces. For more information about Filament, visit the Filament documentation.
To install Filament, follow these steps:
-
Install Filament using Composer:
composer require filament/filament="3.2.57" -W
-
Publish the Filament configuration:
php artisan vendor:publish --tag=filament-config
-
Configure Filament by editing the
config/filament.php
file as needed. -
Create Filament resources and pages using Artisan commands. For instance, to generate resources like a Post resource (assuming Post is your model):
php artisan make:filament-resource Post
For beginners looking for a step-by-step guide, check out this tutorial video for beginners.
To use this project, follow the installation steps provided above. Once the application is running, you can access the admin panel at http://127.0.0.1:8000/admin
using the credentials mentioned earlier.
For a detailed example of how to use this project, please refer to the case example.
For any questions or issues, please open an issue on this repository or contact the project maintainer directly.
If you wish to contribute to this project, please fork this repository and submit a pull request with your changes.
This project is licensed under the MIT License. You may not use this project for commercial purposes. See the LICENSE file for more details.