dev-master
9999999-devGenerate a model, repository, controller and services
The Requires
The Development Requires
by Twinkle Sharma
Wallogit.com
2017 © Pedro Peláez
Generate a model, repository, controller and services
Generates a model, repository, controller and services, (*1)
Add laravelresource/resourcemaker as a requirement to composer.json :, (*2)
{
"require": {
"laravelresource/resourcemaker": "dev-master"
}
}
Update your packages with composer update or install with composer install., (*3)
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)., (*4)
LaravelResource\ResourceMaker\ResourceGeneratorServiceProvider::class,, (*5)
And that's it! Start working with a awesome resource Generator!, (*6)
From the command line, run:, (*7)
php artisan make:resource ModelName "attributes"
For the simplest example, let's create a new users resource:, (*8)
php artisan make:resource Users
Generate a model, repository, controller and services