123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App\Http\Models;
- use Illuminate\Database\Eloquent\Model;
- class SiteProcess extends Model
- {
- protected $table = 'sites_process';
- protected $primaryKey = 'id';
- protected $guarded = [];
- protected $casts = [
- 'detail' => 'array',
- 'file_list' => 'array',
- 'evaluate' => 'array',
- 'check_items' => 'array',
- 'deploy' => 'array'
- ];
- public function process()
- {
- return $this->belongsTo(Process::class, 'process_id', 'id');
- }
- public function site()
- {
- return $this->belongsTo(Site::class, 'site_id', 'id');
- }
- }
|