Skip to content

Commit

Permalink
删除模板多余行
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjiangyi committed Jul 4, 2024
1 parent c25ec16 commit a072e18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Generators/Model/default/model.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
use Illuminate\Support\Carbon;
<?php endif; ?>


/**
* This is the model class for table "<?= $tableSchema['comment'] ?>".
<?php foreach ($properties as $property => $data): ?>
* @property <?= "{$data['type']} \${$property}" . ($data['comment'] ? ' ' . strtr($data['comment'], ["\n" => ' ']) : '') . "\n" ?>
* @property <?= "{$data['type']} \${$property}" . ($data['comment'] ? ' ' . strtr($data['comment'], ["\n" => ' ']) : '') . "\n" ?>
<?php endforeach; ?>
*/
class <?= $modelClassName ?> extends Model
Expand Down

0 comments on commit a072e18

Please sign in to comment.