inital commit
This commit is contained in:
20
app/Models/EdarateOstani.php
Normal file
20
app/Models/EdarateOstani.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EdarateOstani extends Model
|
||||
{
|
||||
protected $table = 'edarate_ostani';
|
||||
|
||||
public function roadObserved()
|
||||
{
|
||||
return $this->morphMany(RoadObserved::class, 'handler');
|
||||
}
|
||||
|
||||
public function roadItemsProjects()
|
||||
{
|
||||
return $this->morphMany(RoadItemsProject::class, 'edarat');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user