hoangphamdev/simple-admin-generator

SAG is a Laravel package designed to streamline the process of creating administrative panels for web applications. With this package, developers can quickly generate basic administrative interfaces for managing various aspects of their applications, such as user management, content management, sett

1.0.4 2024-07-25 15:30 UTC

This package is auto-updated.

Last update: 2024-08-25 15:40:54 UTC


README

Simple Admin Generation

simple-admin-generator is a powerful and easy-to-use package for generating admin functionalities in your Laravel application. With a focus on simplicity and efficiency, this package streamlines the creation and management of admin panels, making it easier for developers to build robust backend systems.

Packagist Packagist

Requirements

  • PHP >= 7.0.0
  • Laravel >= 9.x

Prerequisites

If you don't already have an Apache local environment with PHP and MySQL, use one of the following links:

Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
And Laravel: https://laravel.com/docs/9.x/installation

Make sure all database connections are set up correctly in your .env file.

Installation

Install package using command:

composer require hoangphamdev/simple-admin-generator

Run following command to install.

php artisan sag:install

Open http://localhost/admin/login in browser,use email admin@sag.com and password secret to login.

Edit your dashboard at resources/views/sag/dashboard.blade.php

Documentation

Generate new UI

This feature will generate a basic UI for you so that you can quickly create your own CRUD functionality.

Run following command:

php artisan sag:generate_ui <Your functionnalities name>

Example: php artisan sag:generate_ui Blog

Then open http://localhost/admin/blog to see your new UI. Your functionality files will be generated following the structure below. Open and edit them as you wish.

File Structure

┣ 📂Http
   ┗📂Controllers
     ┗📂SAG
       ┗📜BlogController.php
┣ 📂recources
   ┗ 📂views
      ┗ 📂sag
         ┗ 📂blog
            ┣📜create.blade.php
            ┣📜edit.blade.php
            ┣📜edit.blade.php
            ┣📜index.blade.php

Other

simple-admin-generator based on following plugins or services:

License

simple-admin-generator is licensed under The MIT License (MIT).