Skip to content

Repository files navigation

Berikut adalah contoh README.md untuk repository Anda yang berisi boilerplate template SB Admin untuk Laravel dengan fitur autentikasi dan manajemen role permission:


Laravel SB Admin Boilerplate

Laravel License

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.

Features

  • 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.

Installation

Prerequisites

  • PHP >= 8.1
  • Composer
  • Node.js & npm
  • MySQL or any other database supported by Laravel

Steps

  1. Clone the repository:

    git clone https://github.com/username/laravel-sb-admin-boilerplate.git
    cd laravel-sb-admin-boilerplate
  2. Install dependencies:

    composer install
    npm install
    npm run dev
  3. Set up environment variables:

    • Copy the .env.example file to .env and update the environment variables as needed:
    cp .env.example .env
    • Set up your database configuration in the .env file.
  4. Generate application key:

    php artisan key:generate
  5. Run migrations and seeders:

    php artisan migrate --seed
  6. Start the development server:

    php artisan serve
  7. Access the application:

    • Open your browser and go to http://localhost:8000.

Usage

Authentication

  • 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.

Role & Permission Management

  • This boilerplate uses Spatie Laravel Permission for role and permission management.
  • Roles and permissions can be managed through the admin panel.

Admin Panel

  • After logging in as an admin, you can access the user management and role management features through the dashboard.

Customization

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.

Compiling Assets

To compile assets, use the following commands:

  • Development:

    npm run dev
  • Production:

    npm run build

Contributing

If you find a bug or have a suggestion, feel free to open an issue or submit a pull request. Contributions are welcome!

License

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages