OrderPayment.php 774 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Webkul\Sales\Models;
  3. use Illuminate\Database\Eloquent\Factories\Factory;
  4. use Illuminate\Database\Eloquent\Factories\HasFactory;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Webkul\Sales\Contracts\OrderPayment as OrderPaymentContract;
  7. use Webkul\Sales\Database\Factories\OrderPaymentFactory;
  8. class OrderPayment extends Model implements OrderPaymentContract
  9. {
  10. use HasFactory;
  11. protected $table = 'order_payment';
  12. protected $guarded = [
  13. 'id',
  14. 'created_at',
  15. 'updated_at',
  16. ];
  17. protected $casts = [
  18. 'additional' => 'array',
  19. ];
  20. /**
  21. * Create a new factory instance for the model.
  22. */
  23. protected static function newFactory(): Factory
  24. {
  25. return OrderPaymentFactory::new();
  26. }
  27. }