structure and style updates
This commit is contained in:
@@ -10,7 +10,13 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
final class Product extends Model
|
||||
{
|
||||
protected $table = 'helpdesk_products';
|
||||
protected $fillable = ['company_id','name','slug','type','version','release_channel','description','is_active'];
|
||||
protected $casts = ['company_id'=>'integer','is_active'=>'boolean'];
|
||||
public function tickets(): HasMany { return $this->hasMany(Ticket::class, 'product_id'); }
|
||||
|
||||
protected $fillable = ['company_id', 'name', 'slug', 'type', 'version', 'release_channel', 'description', 'is_active'];
|
||||
|
||||
protected $casts = ['company_id' => 'integer', 'is_active' => 'boolean'];
|
||||
|
||||
public function tickets(): HasMany
|
||||
{
|
||||
return $this->hasMany(Ticket::class, 'product_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user