laravelresource/resourcemaker
| Install | |
|---|---|
composer require laravelresource/resourcemaker |
|
| PHP: | >=5.5.9 |
| Last Updated: | Apr 12, 2017 |
| Links: | GitHub · Packagist |
laravel-resource-generator
Generates a model, repository, controller and services
Installation
Add laravelresource/resourcemaker as a requirement to composer.json :
{
"require": {
"laravelresource/resourcemaker": "dev-master"
}
}
Update your packages with composer update or install with composer install.
You can also add the package using composer require laravelresource/resourcemaker "dev-master" and later specifying the version you want (for now, dev-master is your best bet).
Service Provider
LaravelResource\ResourceMaker\ResourceGeneratorServiceProvider::class,
And that's it! Start working with a awesome resource Generator!
Using the generator
From the command line, run:
php artisan make:resource ModelName "attributes"
For the simplest example, let's create a new users resource:
php artisan make:resource Users
Related Packages
laravel-paypalpayment is simple package help you process direct credit card paym...
Powerful PHP database abstraction layer (DBAL) with many features for database s...