Berikut adalah contoh README.md untuk repository Anda yang berisi boilerplate template SB Admin untuk Laravel dengan fitur autentikasi dan manajemen role permission:
A boilerplate template for Laravel featuring the SB Admin dashboard. This template comes pre-configured with authentication and role-based access control (RBAC) using Spatie's Laravel Permission package.
- SB Admin Template: Integrated with the SB Admin dashboard for a clean and modern UI.
- Authentication: Out-of-the-box authentication including login, registration, password reset, and email verification.
- Role & Permission Management: Manage user roles and permissions with Spatie's Laravel Permission package.
- User Management: CRUD operations for managing users within the application.
- Responsive Design: Fully responsive and mobile-friendly layout.
- Bootstrap 5: Built using the latest version of Bootstrap.
- PHP >= 8.1
- Composer
- Node.js & npm
- MySQL or any other database supported by Laravel
-
Clone the repository:
git clone https://github.com/username/laravel-sb-admin-boilerplate.git cd laravel-sb-admin-boilerplate -
Install dependencies:
composer install npm install npm run dev
-
Set up environment variables:
- Copy the
.env.examplefile to.envand update the environment variables as needed:
cp .env.example .env
- Set up your database configuration in the
.envfile.
- Copy the
-
Generate application key:
php artisan key:generate
-
Run migrations and seeders:
php artisan migrate --seed
-
Start the development server:
php artisan serve
-
Access the application:
- Open your browser and go to
http://localhost:8000.
- Open your browser and go to
- The authentication system includes registration, login, password reset, and email verification.
- After installation, you can log in using the default credentials provided by the seeder.
- This boilerplate uses Spatie Laravel Permission for role and permission management.
- Roles and permissions can be managed through the admin panel.
- After logging in as an admin, you can access the user management and role management features through the dashboard.
You can customize the SB Admin theme by editing the Blade templates located in the resources/views directory. The CSS and JS assets are compiled using Laravel Mix.
To compile assets, use the following commands:
-
Development:
npm run dev
-
Production:
npm run build
If you find a bug or have a suggestion, feel free to open an issue or submit a pull request. Contributions are welcome!
This project is open-sourced software licensed under the MIT license.
With this README, your repository will be well-documented, making it easier for others to understand and contribute to your project.