Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wenjy/laravel-model-gen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.8
Choose a base ref
...
head repository: wenjy/laravel-model-gen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 4, 2024

  1. 删除模板多余行

    wenjiangyi committed Jul 4, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a072e18 View commit details
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Generators/Model/default/model.blade.php
3 changes: 1 addition & 2 deletions src/Generators/Model/default/model.blade.php
Original file line number Diff line number Diff line change
@@ -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