Skip to content

INFO

Dokumentasi Bahasa Indonesia akan segera tersedia, kamu dapat membantu kami menyusun dokumentasi disini.

Available Features

Here are some features currently available for you to try.

  1. CRUD Generator
  2. Configurable Sidebar Menu (full version)
  3. CRUD User (full version)
  4. Role & permissions - Spatie Permission (full version)
  5. Authentication - Laravel Fortify (full version)
    • Login
    • Register
    • Forgot Password
    • 2FA Authentication
    • Profile Information Update

Available Commands

Generator Installation

Install Generator variants: Simple / Full version

For the simple version

sh
php artisan generator:install simple

For the full version

sh
php artisan generator:install full

DANGER

Both scripts will overwrite some files, so proceed with caution and avoid running them several times.

INFO

For different between simple and full version, refer to Getting Started

Publish image service class

sh
php artisan generator:publish-image-service-v2

Publish utility classes

sh
php artisan generator:publish-utils

Configure the menu on the sidebar.

The sidebar menu settings may be found in config/generator.php. Set the sidebar menu to static .blade code or use a list from the configuration (dynamic).

sh
php artisan generator:sidebar dynamic

When using a static Sidebar menu, you are free to modify the Sidebar menu in resources/views/layouts/sidebar.blade.php

sh
php artisan generator:sidebar static

INFO

When you create a new module with the Generator, the Sidebar will automatically revert to dynamic. But don't panic, you may revert to the previous settings.

Utility Classes/Helper

Helper

The helper class is placed in App\Generators\helper.php

Check active menu on Sidebar

Checks whether the menu on the Sidebar matches the accessed uri.

php
/**
 * @param string|array $route
 * @return string ('' || 'active')
 */
is_active_menu(string|array $route): string;

ImageServiceV2

This class is used to perform image upload and manipulation functions using Intervention Image v3.x (optional), it's placed in App\Generators\Services