Package Data | |
---|---|
Maintainer Username: | twinklesharma |
Maintainer Contact: | twinkle.sharma@daffodilsw.com (Twinkle Sharma) |
Package Create Date: | 2017-03-29 |
Package Last Update: | 2017-04-12 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-22 03:08:11 |
Package Statistics | |
---|---|
Total Downloads: | 24 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Generates a model, repository, controller and services
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).
LaravelResource\ResourceMaker\ResourceGeneratorServiceProvider::class,
And that's it! Start working with a awesome resource 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