for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace UniSharp\Buyable\Models;
use Illuminate\Database\Eloquent\Model;
use UniSharp\Buyable\Contracts\ProductUnitContract;
class Spec extends Model implements ProductUnitContract
{
protected $guarded = [];
protected $casts = [
'price' => 'integer'
];
public function buyable()
return $this->morphTo('buyable');
}