PaymentCollectionChannel.php 518 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\SoftDeletes;
  4. class PaymentCollectionChannel extends BaseModel
  5. {
  6. use SoftDeletes;
  7. protected $table = 'payment_collection_channels';
  8. protected $guarded = [];
  9. protected $hidden = ['deleted_at'];
  10. protected $casts = [
  11. 'recharge_channel_group_ids' => 'array',
  12. 'status' => 'integer',
  13. ];
  14. public function rechargeChannel()
  15. {
  16. return $this->belongsTo(RechargeChannel::class, 'recharge_channel_id');
  17. }
  18. }