sondt87 / gzone-library
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sondt87/gzone-library
Requires
- php: >=5.3.0
- illuminate/support: 4.1.*
This package is not auto-updated.
Last update: 2025-10-25 20:00:46 UTC
README
install
"sondt87/gzone-library": "dev-master"
Register Service provider on config/app.php:
'Sondt87\GzoneLibrary\GzoneLibraryServiceProvider'
How to use
make controller
php artisan util:make_controller [name]
example
php artisan util:make_controller User
5 files is generated:
results
app
|__ controllers
|__ User
|__ APIController.php
|__ BackendController.php
|__ BaseController.php
|__ FrontendController.php
|__ Interface.php
make repository
php artisan util:make_repository [name] [folder_path]
example
php artisan util:make_repository User Demo/Repo
results
app
|__ Demo
|__ Repo
|__ User
| |__ UserRepository.php
| |__ EloquentUserRepository.php
|
|__ AbstractRepository.php
|__ IRepository
make model
php artisan util:make_model [name] {table}
note: atomaticaly remove charactor "_".
example
php artisan util:make_model User_Profile
results
app
|__ models
|__ UserProfile.php
|__ public $table = 'user_profile';