You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
8 years ago | |
|---|---|---|
| src | 8 years ago | |
| tests | 8 years ago | |
| .gitignore | 8 years ago | |
| .travis.yml | 8 years ago | |
| LICENSE | 8 years ago | |
| composer.json | 8 years ago | |
| phpunit.xml | 8 years ago | |
| readme.md | 8 years ago | |
readme.md
Laravel Simple CRUD Generator
An artisan make:crud command to create a simple CRUD feature on your Laravel 5.5 application.
Development in progress
About this package
With this package installed on local environment, we can use (e.g.) php artisan make:crud Item command to generate some files :
- App\Item.php eloquent model
- ItemsController.php in
app/Http/Controllersdirectory - create_items_table.php migration file
- index.blade.php view file in
resources/views/itemsdirectory - forms.blade.php view file in
resources/views/itemsdirectory - ManageItemsTest.php feature test class in
tests/Featuredirectory - ItemTest.php unit test class in
tests/Unit/Modelsdirectory
How to install
On composer.json file, Add this :
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nafiesl/SimpleCrudGenerator.git"
}
],
then
$ composer require luthfi/simple-crud-generator dev-master --dev
Note: this package still in development
How to use
The package will auto-discovered in Laravel 5.5. Just type in terminal:
$ php artisan
We will find the make:crud command, it will Create simple Laravel CRUD files of given model name.
Note: It also creates the model class file.
$ php artisan make:crud Item
Item resource route generated on routes/web.php.
Item model generated.
Item table migration generated.
ItemsController generated.
Item view files generated.
item lang files generated.
item model factory generated.
BrowserKitTest generated.
ManageItemsTest generated.
ItemTest (model) generated.
CRUD files generated successfully!