12345678910111213141516171819 |
- <?php
- namespace App\Models;
- class WorkPoint extends BaseModel
- {
- public function getStatusOptions()
- {
- return Option::select('key as id', 'name')->where([
- ['table', 'work_points'],
- ['column', 'status']
- ])->get();
- }
- public function project()
- {
- return $this->belongsTo('App\Models\Project', 'project_id');
- }
- }
|