mdhesari / laravel-assistant
A smart laravel assistant which makes Laravel deveoper's life easier. just focus on the logic and leave the boilerplates on me.
Requires
- php: ^8.1
- illuminate/support: ^10.0
- mdhesari/api-response: ^2.0
- mdhesari/laravel-query-filters: ^2.0|^3.0
- orhanerday/open-ai: ^4.8
Requires (Dev)
- laravel/prompts: ^0.1.3
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- phpunit/phpunit: ^10.0
README
Larave assistant is a smart assistant tool for developers in order to develop and implement robust api for their client.
Installation
You can install the package via composer:
composer require mdhesari/laravel-assistant --dev
Usage
php artisan assistant:install
This package was created when I wanted to have a tool in order to scaffold my new modules in a second with my architecture and design concepts.
It's currently best fit for api design, for example I want to develop a Todo app.
before everything don't forget to add OPENAI_API_KEY in your .env.
OPENAI_API_KEY="YOUR_API_KEY"
The magical command assistant:crud uses base architecture for scaffolding model, controller, migration, request architecture, and also it creates some events and actions in order to integrate them together.
- Crud scaffolding
php artisan assistant:crud -a Task
- Migration
php artisan assistant:make-migration Task
- Model
php artisan assistant:make-model Task
- Request
php artisan assistant:make-request Task
- Modules
Use modules option in order to add files into their specified module.
--modules=true
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email mdhesari99@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.