sondt87 / gzone-library
2.2.0
2014-05-08 09:41 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.1.*
This package is not auto-updated.
Last update: 2024-12-21 15:18:57 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';