Skip to content

Commit 8a684f5

Browse files
committed
Fix
1 parent 4c681b1 commit 8a684f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Commands/MakeCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ private function generateColumns(string $modelName): string
219219
throw new \Exception('Invalid model given.');
220220
}
221221

222-
$getFillable = array_merge(
222+
$getFillable = array_merge(
223223
[$model->getKeyName()],
224224
$model->getFillable(),
225225
['created_at', 'updated_at']
226226
);
227227

228-
$columns = "[\n";
228+
$columns = "[\n";
229229

230230
foreach ($getFillable as $field) {
231231
if (in_array($field, $model->getHidden())) {
@@ -234,10 +234,10 @@ private function generateColumns(string $modelName): string
234234

235235
$title = Str::of($field)->replace('_', ' ')->ucfirst();
236236

237-
$columns .= ' Column::make("' . $title . '", "' . $field . '")' . "\n" . ' ->sortable(),' . "\n\n";
237+
$columns .= ' Column::make("' . $title . '", "' . $field . '")' . "\n" . ' ->sortable(),' . "\n";
238238
}
239239

240-
$columns .= " ]\n";
240+
$columns .= " ]";
241241

242242
return $columns;
243243
}

0 commit comments

Comments
 (0)