Configurations for payment modules
This commit is contained in:
@@ -2,10 +2,22 @@
|
||||
|
||||
namespace App\RelationModels;
|
||||
|
||||
use App\Scopes\CommonModel;
|
||||
use Illuminate\Database\Eloquent\Relations\Pivot;
|
||||
|
||||
class EventPaymentMethods extends CommonModel
|
||||
/**
|
||||
* @property int $event_id
|
||||
* @property string $slug
|
||||
* @property ?array $configuration
|
||||
*/
|
||||
class EventPaymentMethods extends Pivot
|
||||
{
|
||||
protected $table = 'event_payment_methods';
|
||||
protected $fillable = ['event_id', 'slug'];
|
||||
|
||||
public $incrementing = true;
|
||||
|
||||
protected $fillable = ['event_id', 'slug', 'configuration'];
|
||||
|
||||
protected $casts = [
|
||||
'configuration' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user