QuickAdmin is a web-based starter kit to help to start a large application without thinking about authentication, authorization, and role-based permission.
- The codebase is structured by a Repository pattern.
- Laravel Ui is used for authentication.
QuickAdmin is accessible, powerful, and provides tools required for large, robust applications.
- PHP >= 8.1
- First clone the project and change the directory
git clone https://github.com/wahid09/QuickAdmin.git
cd QuickAdmin
- Install Dependencies
- install composer
composer install
- Copy
.env.example
to.env
cp .env.example .env
- Generate application key
php artisan key:generate
- Databse migrations
php artisan migrate:refresh --seed
- Start the webserver
php artisan serve
- Email: admin@admin.com
- Password: password
The QuickAdmin provides dynamic ACL in a single action of every user. To achieve this functionality use the below code in your controller method.
Gate::authorize('permission slug');
e.g
public function store(ModuleRequest $request){
Gate::authorize('module-create');
//code
}
Blade directive for sidebar menu control.
@permission('permission slug')
//code
@endpermission
To track the record of user activity using the below code in every action method in your controller.
\LogActivity::addToLog('user action');
The QuickAdmin is open-sourced software licensed under the MIT license.