海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
434 B

4 years ago
4 years ago
4 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. use Illuminate\Database\Eloquent\Model;
  6. class DepositLog extends Model
  7. {
  8. use HasDateTimeFormatter;
  9. use SoftDeletes;
  10. protected $table = 'deposit_log';
  11. protected $guarded = ['id']; //不允许编辑的字段
  12. public function supplier()
  13. {
  14. return $this->belongsTo(Supplier::class)->withTrashed();
  15. }
  16. }