library artisanmakers
Laravel Artisan Makers
nasrulhazim/artisanmakers
Laravel Artisan Makers
- Sunday, December 24, 2017
- by nasrulhazim.m
- Repository
- 2 Watchers
- 4 Stars
- 28 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
About Artisan Makers
This package extend the capbilities of Laravel Artisan Make Command., (*1)
Installation
composer require nasrulhazim/artisanmakers
Open up app/Providers/AppServiceProvider.php
and register the service provider as following:, (*2)
if ($this->app->environment() !== 'production') {
$this->app->register(\NasrulHazim\ArtisanMakers\ArtisanMakersServiceProvider::class);
}
Usage
Type php artisan --help
for more details., (*3)
Available Commands
-
[x] Contracts: php artisan make:contract ContractName
, (*4)
-
[x] Exceptions: php artisan make:exception NewExceptionClassName
, (*5)
-
[ ] Macros: php artisan make:macro ClassName
, (*6)
-
[x] Model: php artisan make:mode ModelName
, (*7)
- This will create models under
app/Models
directory instead of app
directory by default.
-
Register manually in your application in
app/Console/Kernel.php
in $commands
property. Not sure why the command didn't load in the package. Probably it's loaded, by overwrite by default make:model
command.
protected $commands = [
\NasrulHazim\ArtisanMakers\Console\Commands\MakeModelCommand::class,
];
-
[ ] Observer: php artisan make:observer ObserverClassName ModelToObserve
, (*8)
TODO, (*9)
- [x] Create
ObserverServiceProvider
- [x] Create
Observer
class
- [ ] Register
ObserverServiceProvider
in config/app.php
- [ ] Include model & observer namespace in
ObserverServiceProvider
- [ ] Bootstrap Observer in
ObserverServiceProvider
-
[x] Presenters: php artisan make:presenter PresenterClassName
, (*10)
-
[x] Processors: php artisan make:processor ProcessorClassName
, (*11)
-
[ ] Repositories: php artisan make:repository RepositoryClassName
, (*12)
-
[ ] Resourceful: php artisan make:resourceful ClassName
, (*13)
-
[x] Services: php artisan make:service ServiceClassName
, (*14)
-
[x] Traits: php artisan make:trait TraitClassName
, (*15)
-
[x] Transformers: php artisan make:transformer TransformerClassName
, (*16)
License
This package is open-sourced software licensed under the MIT license., (*17)
dev-master
9999999-dev
Laravel Artisan Makers
Sources
Download
MIT
The Requires
by
Nasrul Hazim
v1.0.2
1.0.2.0
Laravel Artisan Makers
Sources
Download
MIT
The Requires
by
Nasrul Hazim
v1.0.1
1.0.1.0
Laravel Artisan Makers
Sources
Download
MIT
The Requires
by
Nasrul Hazim
v1.0.0
1.0.0.0
Laravel Artisan Makers
Sources
Download
MIT
The Requires
by
Nasrul Hazim