2017 © Pedro Peláez
 

library base

Manage layers in Laravel

image

freddiegar/base

Manage layers in Laravel

  • Wednesday, March 7, 2018
  • by freddiegar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 30 % Grown

The README.md

Base

Base repository to manage layer in Laravel 5.5 to 5.7, (*1)

To create files, on root from your project use

php vendor/freddiegar/base/src/Commands/create.php [NameModel] [options] [columns,names?]

By Example, (*2)

php vendor/freddiegar/base/src/Commands/create.php User _ id,name,surname,email

This create in your project next files:, (*3)

./app/Contracts/Repositories/UserRepository.php ./app/Entities/UserEntity.php ./app/Managers/UserManager.php ./app/Models/User.php ./app/Repositories/Eloquent/EloquentUserRepository.php, (*4)

Also it will create folders if this not exists [Contracts,Entities,Managers,Models,Repositories], (*5)

Options

If you wanna to create only one file in specific, you can use next options (alias):, (*6)

I        [interface]
E        [entity]
G        [manager]
M        [model]
R        [repository]
D        [datatable]
Q        [request]
C        [controller]
i        [_info]
c        [_create]
e        [_edit]
f        [_form]
x        [_index]
w        [_show]
a        [_actions]
l        [_lang]%  

Options shortcuts

All types that you can use are here, additional, this are shorcuts:, (*7)

_ <= underscore       [IEGMR]
* <= asterisk         [IEGMRDQCicefxwal];

The Versions