Download the PHP package nasrulhazim/artisanmakers without Composer
On this page you can find all versions of the php package nasrulhazim/artisanmakers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package artisanmakers
About Artisan Makers
This package extend the capbilities of Laravel Artisan Make Command.
Installation
Open up app/Providers/AppServiceProvider.php
and register the service provider as following:
Usage
Type php artisan --help
for more details.
Available Commands
-
[x] Contracts:
php artisan make:contract ContractName
-
[x] Exceptions:
php artisan make:exception NewExceptionClassName
-
[ ] Macros:
php artisan make:macro ClassName
-
[x] Model:
php artisan make:mode ModelName
- This will create models under
app/Models
directory instead ofapp
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 defaultmake:model
command.
- This will create models under
-
[ ] Observer:
php artisan make:observer ObserverClassName ModelToObserve
TODO
- [x] Create
ObserverServiceProvider
- [x] Create
Observer
class - [ ] Register
ObserverServiceProvider
inconfig/app.php
- [ ] Include model & observer namespace in
ObserverServiceProvider
- [ ] Bootstrap Observer in
ObserverServiceProvider
- [x] Create
-
[x] Presenters:
php artisan make:presenter PresenterClassName
-
[x] Processors:
php artisan make:processor ProcessorClassName
-
[ ] Repositories:
php artisan make:repository RepositoryClassName
-
[ ] Resourceful:
php artisan make:resourceful ClassName
-
[x] Services:
php artisan make:service ServiceClassName
-
[x] Traits:
php artisan make:trait TraitClassName
- [x] Transformers:
php artisan make:transformer TransformerClassName
License
This package is open-sourced software licensed under the MIT license.