laravel-liberu /
genealogy
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Tables\Builders; |
||
| 4 | |||
| 5 | use App\Models\PersonSubm; |
||
| 6 | use Illuminate\Database\Eloquent\Builder; |
||
| 7 | use LaravelEnso\Tables\Contracts\Table; |
||
| 8 | |||
| 9 | class PersonSubmTable implements Table |
||
| 10 | { |
||
| 11 | protected const TemplatePath = __DIR__.'/../Templates/personSubms.json'; |
||
| 12 | |||
| 13 | public function query(): Builder |
||
| 14 | { |
||
| 15 | return PersonSubm::selectRaw(' |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 16 | person_subm.id, "person_subm.group", person_subm.gid, person_subm.subm, person_subm.created_at |
||
| 17 | '); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function templatePath(): string |
||
| 21 | { |
||
| 22 | return static::TemplatePath; |
||
| 23 | } |
||
| 24 | } |
||
| 25 |