Skip to content

Commit a5e7b50

Browse files
committed
Merge branch 'master' of github.com:CrestApps/laravel-code-generator
2 parents 35ba0c1 + cd45441 commit a5e7b50

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "crestapps/laravel-code-generator",
33
"license": "MIT",
4-
"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.",
4+
"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.",
55
"version": "v2.2.7",
66
"keywords": [
77
"laravel","crud","crud generator",

src/Models/Field.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,10 @@ public function isMultipleAnswers()
11141114
*/
11151115
protected function getLabelsFromProperties(array $properties)
11161116
{
1117+
if (!Helpers::isKeyExists($properties, 'labels')) {
1118+
throw new Exception('The resource-file is missing the labels entry for the ' . $this->name . ' field.');
1119+
}
1120+
11171121
if (is_array($properties['labels'])) {
11181122
//At this point we know this the label
11191123
return $this->getLabelsFromArray($properties['labels']);

0 commit comments

Comments
 (0)