feat: Initialize core application structure including authentication, role-based dashboards, service task management, and integration workflows.
This commit is contained in:
31
app/Models/TemplateServiceItem.php
Normal file
31
app/Models/TemplateServiceItem.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TemplateServiceItem extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'template_id',
|
||||
'service_id',
|
||||
'label',
|
||||
'is_mandatory',
|
||||
'fields',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_mandatory' => 'boolean',
|
||||
'fields' => 'array',
|
||||
];
|
||||
|
||||
public function template()
|
||||
{
|
||||
return $this->belongsTo(IntegrationTemplate::class);
|
||||
}
|
||||
|
||||
public function service()
|
||||
{
|
||||
return $this->belongsTo(Service::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user