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
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-25 16:04:07 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.
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:
- Windows: https://updivision.com/blog/post/beginner-s-guide-to-setting-up-your-local-development-environment-on-windows
- Linux: https://howtoubuntu.org/how-to-install-lamp-on-ubuntu
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/
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).