From a14fcdf9e2117228f310decb8eb6dc65aec42dcf Mon Sep 17 00:00:00 2001 From: cloudstudio Date: Wed, 16 Oct 2019 09:23:16 +0200 Subject: [PATCH] fix laravel 6 helper --- resources/views/templates/model.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/templates/model.blade.php b/resources/views/templates/model.blade.php index 31e782e..8516643 100644 --- a/resources/views/templates/model.blade.php +++ b/resources/views/templates/model.blade.php @@ -24,7 +24,7 @@ class {{ $request['singular'] }} extends Model @if(isset($request['relation'])) public function {{ Str::singular($request['related_table']) }}() { -return $this->{{ $request['relation'] }}('{{ $namespace }}\{{Str::singular(ucwords( camel_case($request['related_table']))) }}', '{{ $request['name'] }}', '{{ $request['related_column'] }}'); +return $this->{{ $request['relation'] }}('{{ $namespace }}\{{Str::singular(ucwords( Str::camel($request['related_table']))) }}', '{{ $request['name'] }}', '{{ $request['related_column'] }}'); } @endif @endforeach