Download the PHP package ahmed-aliraqi/artisan-scaffolding without Composer
On this page you can find all versions of the php package ahmed-aliraqi/artisan-scaffolding. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package artisan-scaffolding
Artisan Scaffolding
This package adds some artisan commands to generate relations
, helpers
, scopes
, concerns
, mutators
, transformers
files and override the laravel original artisan commands as your like.
NOTE : the view artisan commands was forked from sven/artisan-view
Installation
Via composer:
Or add the package to your dependencies in composer.json
and run
composer update
to download the package:
Note: If you're using Laravel 5.5, you're done! The service provider is automatically registered in the container, thanks to auto-discovery.
Next, add the ServiceProvider
to your providers
array in config/app.php
:
Usage
If you now run php artisan
you can see 8 new commands:
make:helper
make:mutator
make:relation
make:scope
make:concern
make:transformer
make:view
scrap:view
These commands was overrided by this package :
make:model
: add the fillable as default.make:controller
: add generate request option and generate full resource, nested controller .make:policy
: addlisting
method and replace theuser
variable name toauther
if the created policy file name is usermake:request
: division the rules by method name and change theauthorize
method return to true by default.
If you want to change your project character run this command to publish the config file :
If you want to change stubs files content run this command :
Now you can see the stubs files in this path app\Console\stubs
License
sven/artisan-view
is licensed under the MIT License (MIT). Please see the
license file for more information.