| 2 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace App\Models;
|
|
|
4 |
|
|
|
5 |
use Illuminate\Database\Eloquent\Model;
|
|
|
6 |
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
7 |
|
| 415 |
lars |
8 |
/**
|
|
|
9 |
* App\Models\Property
|
|
|
10 |
*
|
|
|
11 |
* @property int $id
|
|
|
12 |
* @property int|null $tool_id
|
|
|
13 |
* @property string $name
|
|
|
14 |
* @property string $interner_name
|
|
|
15 |
* @property string $beschreibung
|
|
|
16 |
* @property string $hilfetext
|
|
|
17 |
* @property int|null $rang
|
|
|
18 |
* @property string $hidden
|
|
|
19 |
* @property string $quick_edit
|
|
|
20 |
* @property-read \App\Models\Tool|null $Tool
|
|
|
21 |
* @method static \Illuminate\Database\Eloquent\Builder|Property newModelQuery()
|
|
|
22 |
* @method static \Illuminate\Database\Eloquent\Builder|Property newQuery()
|
|
|
23 |
* @method static \Illuminate\Database\Eloquent\Builder|Property query()
|
|
|
24 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereBeschreibung($value)
|
|
|
25 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereHidden($value)
|
|
|
26 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereHilfetext($value)
|
|
|
27 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereId($value)
|
|
|
28 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereInternerName($value)
|
|
|
29 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereName($value)
|
|
|
30 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereQuickEdit($value)
|
|
|
31 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereRang($value)
|
|
|
32 |
* @method static \Illuminate\Database\Eloquent\Builder|Property whereToolId($value)
|
|
|
33 |
* @mixin \Eloquent
|
|
|
34 |
*/
|
|
|
35 |
class Property extends Model
|
| 2 |
lars |
36 |
{
|
|
|
37 |
protected $connection = "cms";
|
|
|
38 |
|
|
|
39 |
public function Tool(): BelongsTo
|
|
|
40 |
{
|
|
|
41 |
return $this->belongsTo( Tool::class )->orderBy( 'tools.rang' );
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
}
|