inital commit
This commit is contained in:
26
app/Models/AccidentPoint.php
Normal file
26
app/Models/AccidentPoint.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AccidentPoint extends Model
|
||||
{
|
||||
/**
|
||||
* Get all of the point's files.
|
||||
*/
|
||||
public function files()
|
||||
{
|
||||
return $this->morphMany('App\Models\PointFile', 'point_fileable');
|
||||
}
|
||||
|
||||
public function accidentPointHistories()
|
||||
{
|
||||
return $this->hasMany('App\Models\AccidentPointHistory', 'point_id');
|
||||
}
|
||||
|
||||
public function accident251Point()
|
||||
{
|
||||
return $this->hasOne('App\Models\Accident251Point');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user