Initial commit - construprogress app

This commit is contained in:
2026-05-07 23:31:33 +02:00
commit 156aa14bbb
157 changed files with 21654 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class InspectionTemplate extends Model
{
protected $fillable = ['name', 'description', 'project_id', 'fields'];
protected $casts = ['fields' => 'array'];
public function project()
{
return $this->belongsTo(Project::class);
}
public function inspections()
{
return $this->hasMany(Inspection::class);
}
}