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