inital commit

This commit is contained in:
2024-02-01 09:53:53 +00:00
commit 9743fce12b
19771 changed files with 4230637 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class RoadPatrolSubProject extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'project_lat',
'project_lng',
'item',
'sub_items',
'sub_items_data'
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'sub_items' => 'array',
'sub_items_data' => 'array'
];
public function roadPatrolProject()
{
return $this->belongsTo('App\Models\RoadPatrolProject');
}
/**
* Get all of the project's files.
*/
public function files()
{
return $this->morphMany('App\Models\ProjectFile', 'project_fileable');
}
}