PHPackages                             placetopay/self-declarations-base - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. placetopay/self-declarations-base

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

placetopay/self-declarations-base
=================================

Manage layers in Laravel

v3.0.1(4y ago)08582MITPHPPHP ^7.2|^8.0

Since Dec 19Pushed 4y ago4 watchersCompare

[ Source](https://github.com/placetopay-org/self-declarations-base)[ Packagist](https://packagist.org/packages/placetopay/self-declarations-base)[ RSS](/packages/placetopay-self-declarations-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (17)Used By (0)

Base
====

[](#base)

Base repository to manage layer in Laravel 5.5 to 5.7

To create files, on root from your project use
----------------------------------------------

[](#to-create-files-on-root-from-your-project-use)

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

```

By Example

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

```

This create in your project next files:

./app/Contracts/Repositories/UserRepository.php ./app/Entities/UserEntity.php ./app/Managers/UserManager.php ./app/Models/User.php ./app/Repositories/Eloquent/EloquentUserRepository.php

Also it will create folders if this not exists \[Contracts,Entities,Managers,Models,Repositories\]

Options
-------

[](#options)

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

```
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

[](#options-shortcuts)

All types that you can use are here, additional, this are shorcuts:

```
_
