for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models;
use Illuminate\Database\Eloquent\Relations\MorphPivot;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
use MichaelRubel\Couponables\Models\Traits\DefinesPivotColumns;
use MichaelRubel\Couponables\Models\Traits\DefinesPivotRelations;
class Couponable extends MorphPivot implements CouponPivotContract
{
use DefinesPivotColumns, DefinesPivotRelations;
/**
* @param array $attributes
*/
public function __construct(array $attributes = [])
parent::__construct($attributes);
$this->table = config('couponables.pivot_table', 'couponables');
}