Skip to content

Commit 55ec24c

Browse files
committed
Merge branch v2.3 into master
2 parents 710861d + 5f2e98d commit 55ec24c

File tree

171 files changed

+10476
-2500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+10476
-2500
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## v2.3.0
2+
- The `create:resources` command have been renamed to `create:scaffold`.
3+
- The `--fields` option was added to the `create:scaffold` to allow you to scaffold everything using a single command. So you can use the `create:scaffold` command to create resource-file and scaffold all at the same time. For example, `php artisan create:scaffold Test --fields=id,first_field,second_field`. The previous command will first create the resource-file before it create your other resources. The `--fields` option should only be used one time only to create the resource-file not every time.
4+
- The default value of the option `controller-extends` in the `create:controller` command was changed from `Http\Controllers\Controller` to `default-controller`.
5+
- A new `create:api-controller` command was created to create API ready controllers.
6+
- The `create_move_file_method` option in the config have been removed. Now simply if you have `moveFile` method defined in the controller base class, generating the method will be skipped. However, if the method does not extsts, it will be generated.
7+
- Multiple new stubs have been added to the default templates. Any stub name that starts with `api-` have been added.
8+
- The `route.stub` file have been modified.
9+
- The following two properties `is-api-visible` and `api-key` were added to the Field properties to give you control on which field should be visile to the api output and what should it be called incase you want to give it a name other that what is in the database.
10+
- The `create:routes` command now has a new option `without-route-clause` which will create the routes without `there` clause for the id. It may be used when the primary key is not an integer. Additionally, the options `--for-api` and `--api-version` have been added to add support for created api-based routes.
11+
- added command to create api-resource with/without collection when using Laravel 5.5+.
12+
- The `create:api-scaffold` command have been added to allow you to create resources for the api.
13+
- The user is no longer required to publish the default templates. This is much better step to prevent upgrade braking when the template are updated during a patch release. The user should publish templates only if he/she want to modify it and rename it. **IMPORTANT** Delete existing default and default-collective templates from the folders from the default publish path of your project.
14+
- The user no longer have to publish resource to install the package! One line only is required to install the package on laravel 5.5+ (i.e, composer require crestapps/laravel-code-generator --dev)
15+
- **IMPORTANT**: delete the the `codegenerator.php` file from your config folder, then rename the `codegenerator_custom.php` file to `laravel-code-generator.php`. Alternatively, you can delete both `codegenerator.php` and `codegenerator_custom.php`
16+
- Added `--model-extends` option to the create:model command to allow the use to extend a custom default base class.
17+
118
## v2.2.7
219
- Added capability to lock down resource from with in the resource file. This is helpful if you make code changes to a file and you want the code generator to protect the file from accidentally overriding it when using --force
320
- When creating resources from existing database, the table name is stored in the resource-file. This step will save you from having to provide the table name via command line each time you create model.

README.md

+147-56
Large diffs are not rendered by default.

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "crestapps/laravel-code-generator",
33
"license": "MIT",
44
"description": "An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5+
<<<<<<< HEAD
56
"version": "v2.2.14",
7+
=======
8+
"version": "v2.4.2",
9+
>>>>>>> v2.3
610
"keywords": [
711
"laravel","crud","crud generator",
812
"laravel crud generator","laravel crud builder",
@@ -20,7 +24,7 @@
2024
}
2125
],
2226
"require": {
23-
"laravel/framework": "~5.1"
27+
"laravel/framework": ">=5.1"
2428
},
2529
"require-dev": {
2630
"phpunit/phpunit" : "^5.0||^6.0||^7.0",

config/codegenerator_custom.php

-39
This file was deleted.

0 commit comments

Comments
 (0)