Skip to content

Commit 1bb8823

Browse files
committed
Create v2.2.5
1 parent eb16f97 commit 1bb8823

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Upgrade
2-
- If you are upgrading from v2.0, v2.1, v2.2, v2.3 to v2.4 make sure you publish the vendor resource. There are some updates to the config file.
2+
- If you are upgrading from v2.0, v2.1, v2.2, v2.3 to v2.4 or v2.5 make sure you publish the vendor resource. There are some updates to the config file.
33
- If you are upgrading from v2.0, v2.1 or v2.2 to v2.3 make sure you publish the vendor resource. There are some updates to the config file.
44
- If you are upgrading from v2.0 or v2.1 to v2.2 make sure you publish the vendor resource. There are some changes to the templates that required to be updated.
55
-- If you are upgrading any version prior v2.2 follow the upgrate instruction on https://crestapps.com/laravel-code-generator/docs/2.2#upgrade-guide

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "crestapps/laravel-code-generator",
33
"license": "MIT",
44
"description": "A clean code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages or request-forms! It is extremely flexible and customizable to cover many use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5-
"version": "v2.2.4",
5+
"version": "v2.2.5",
66
"keywords": [
77
"laravel","crud","crud generator",
88
"laravel crud generator","laravel crud builder",

src/Commands/CreateModelCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use CrestApps\CodeGenerator\Models\ForeignRelationship;
77
use CrestApps\CodeGenerator\Models\Resource;
88
use CrestApps\CodeGenerator\Support\Config;
9+
use CrestApps\CodeGenerator\Support\FieldTransformer;
910
use CrestApps\CodeGenerator\Support\Helpers;
1011
use CrestApps\CodeGenerator\Traits\CommonCommand;
1112
use CrestApps\CodeGenerator\Traits\GeneratorReplacers;
@@ -169,7 +170,7 @@ protected function upsertDeletedAt(array $fields)
169170
*/
170171
protected function getNewDeletedAtField()
171172
{
172-
$field = new Field('deleted_at');
173+
$field = current(FieldTransformer::fromString('deleted_at'));
173174
$field->isDate = true;
174175
$field->dataType = 'datetime';
175176
$field->dateFormat = Config::getDateTimeFormat();

0 commit comments

Comments
 (0)