40 lines
733 B
PHP
40 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Models\Ecommerce\Payouts;
|
|
|
|
use App\Models\Ecommerce\Channel\Channel;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class PayoutItem extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* Protected fields
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<string>
|
|
*/
|
|
protected $fillable = [
|
|
'payout_id',
|
|
'channel_id',
|
|
'order_item_id',
|
|
];
|
|
|
|
/**
|
|
* Related channel
|
|
*/
|
|
public function channel(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Channel::class);
|
|
}
|
|
}
|