Skip to content

Commit 38cd868

Browse files
MrError5mrerror5
and
mrerror5
authored
=Fix Error Message In Controller Datatable_controller_locale.stub (InfyOmLabs#942)
Co-authored-by: mrerror5 <[email protected]>
1 parent 262e40a commit 38cd868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/scaffold/controller/datatable_controller_locale.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class $MODEL_NAME$Controller extends AppBaseController
7272
$$MODEL_NAME_CAMEL$ = $this->$MODEL_NAME_CAMEL$Repository->find($id);
7373

7474
if (empty($$MODEL_NAME_CAMEL$)) {
75-
Flash::error(__('models/$MODEL_NAME_PLURAL_CAMEL$.singular').' '.__('messages.not_found'));
75+
Flash::error(__('messages.not_found', ['model' => __('models/$MODEL_NAME_PLURAL_CAMEL$.singular')]));
7676

7777
return redirect(route('$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.index'));
7878
}

0 commit comments

Comments
 (0)