| Zeile 9... |
Zeile 9... |
| 9 |
use Illuminate\Support\Collection;
|
9 |
use Illuminate\Support\Collection;
|
| 10 |
use Spatie\Sluggable\HasSlug;
|
10 |
use Spatie\Sluggable\HasSlug;
|
| 11 |
use Spatie\Sluggable\SlugOptions;
|
11 |
use Spatie\Sluggable\SlugOptions;
|
| Zeile 12... |
Zeile 12... |
| 12 |
|
12 |
|
| 13 |
/**
|
13 |
/**
|
| 14 |
* App\Models\Directory
|
14 |
* App\Models\Directory
|
| 15 |
*
|
15 |
*
|
| 16 |
* @property int $id
|
16 |
* @property int $id
|
| 17 |
* @property int|null $directory_id
|
17 |
* @property int|null $directory_id
|
| 18 |
* @property string $name
|
18 |
* @property string $name
|
| 19 |
* @property string $slug
|
19 |
* @property string $slug
|
| 20 |
* @property string $kennung
|
20 |
* @property string $kennung
|
| 21 |
* @property int $articlemaster
|
21 |
* @property int $articlemaster
|
| 22 |
* @property int $status
|
22 |
* @property int $status
|
| 23 |
* @property string $url
|
23 |
* @property string $url
|
| 24 |
* @property string $description
|
24 |
* @property string $description
|
| 25 |
* @property string $short_line_1
|
25 |
* @property string $short_line_1
|
| 26 |
* @property string $created_by
|
26 |
* @property string $created_by
|
| 27 |
* @property string $updated_by
|
27 |
* @property string $updated_by
|
| 28 |
* @property \Illuminate\Support\Carbon|null $created_at
|
28 |
* @property \Illuminate\Support\Carbon|null $created_at
|
| 29 |
* @property \Illuminate\Support\Carbon|null $updated_at
|
29 |
* @property \Illuminate\Support\Carbon|null $updated_at
|
| 30 |
* @property-read Directory|null $directory
|
30 |
* @property-read Directory|null $directory
|
| 31 |
* @property-read \App\Models\Manufacturer|null $manufacturer
|
31 |
* @property-read \App\Models\Manufacturer|null $manufacturer
|
| 32 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\DirectoryMedium> $medium
|
32 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\DirectoryMedium> $medium
|
| 33 |
* @property-read int|null $medium_count
|
33 |
* @property-read int|null $medium_count
|
| 34 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\DirectoryTemplate> $template
|
34 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\DirectoryTemplate> $template
|
| 35 |
* @property-read int|null $template_count
|
35 |
* @property-read int|null $template_count
|
| 36 |
* @method static \Database\Factories\DirectoryFactory factory($count = null, $state = [])
|
36 |
* @method static \Database\Factories\DirectoryFactory factory( $count = null, $state = [] )
|
| 37 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory newModelQuery()
|
37 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory newModelQuery()
|
| 38 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory newQuery()
|
38 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory newQuery()
|
| 39 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory query()
|
39 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory query()
|
| 40 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereArticlemaster($value)
|
40 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereArticlemaster( $value )
|
| 41 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereCreatedAt($value)
|
41 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereCreatedAt( $value )
|
| 42 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereCreatedBy($value)
|
42 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereCreatedBy( $value )
|
| 43 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereDescription($value)
|
43 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereDescription( $value )
|
| 44 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereDirectoryId($value)
|
44 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereDirectoryId( $value )
|
| 45 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereId($value)
|
45 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereId( $value )
|
| 46 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereKennung($value)
|
46 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereKennung( $value )
|
| 47 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereName($value)
|
47 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereName( $value )
|
| 48 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereShortLine1($value)
|
48 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereShortLine1( $value )
|
| 49 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereSlug($value)
|
49 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereSlug( $value )
|
| 50 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereStatus($value)
|
50 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereStatus( $value )
|
| 51 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUpdatedAt($value)
|
51 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUpdatedAt( $value )
|
| 52 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUpdatedBy($value)
|
52 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUpdatedBy( $value )
|
| 53 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUrl($value)
|
53 |
* @method static \Illuminate\Database\Eloquent\Builder|Directory whereUrl( $value )
|
| 54 |
* @mixin \Eloquent
|
54 |
* @mixin \Eloquent
|
| 55 |
*/
|
55 |
*/
|
| 56 |
class Directory extends Model
|
56 |
class Directory extends Model
|
| 57 |
{
|
57 |
{
|
| Zeile 58... |
Zeile 58... |
| 58 |
use HasFactory, HasSlug;
|
58 |
use HasFactory, HasSlug;
|
| 59 |
|
59 |
|
| Zeile 80... |
Zeile 80... |
| 80 |
return $this->hasMany( DirectoryMedium::class )->orderBy( "rank" );
|
80 |
return $this->hasMany( DirectoryMedium::class )->orderBy( "rank" );
|
| 81 |
}
|
81 |
}
|
| Zeile 82... |
Zeile 82... |
| 82 |
|
82 |
|
| 83 |
function items(): HasMany
|
83 |
function items(): HasMany
|
| 84 |
{
|
84 |
{
|
| 85 |
return $this->hasMany( Item::class )->orderBy( "rank" );
|
85 |
return $this->hasMany( Item::class )->orderBy( "id", "DESC" );
|
| Zeile 86... |
Zeile 86... |
| 86 |
}
|
86 |
}
|
| 87 |
|
87 |
|
| 88 |
function template(): HasMany
|
88 |
function template(): HasMany
|