sondt87/gzone-library

2.2.0 2014-05-08 09:41 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';