for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sagitarius29\LaravelSubscriptions;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
abstract class PlanFeature extends Model
{
protected $table = 'plan_features';
protected $fillable = [
'code', 'value', 'sort_order', 'is_consumable',
];
public function plan(): BelongsTo
return $this->belongsTo(config('subscriptions.entities.plan'));
}
public function getValue()
return $this->value;
public function getCode(): string
return $this->code;