Updates to 03-2025

This commit is contained in:
Kevin Adametz 2025-04-01 10:40:14 +02:00
parent 881fc84207
commit 4eb83def39
142 changed files with 21396 additions and 11243 deletions

View file

@ -13,7 +13,7 @@ use Illuminate\Database\Eloquent\Model;
/**
* Class Page
*
*
* @property int $id
* @property int|null $owner
* @property string|null $model
@ -59,7 +59,6 @@ use Illuminate\Database\Eloquent\Model;
* @property int|null $fewo_lodging
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @property Page|null $page
* @property TravelCountry|null $travel_country
* @property TravelGuide|null $travel_guide
@ -67,9 +66,63 @@ use Illuminate\Database\Eloquent\Model;
* @property Collection|Redirect[] $redirects
* @property Collection|TravelCountry[] $travel_countries
* @property Collection|TravelProgram[] $travel_program_content
*
* @package App\Models
* @property-read Collection<int, Page> $child_pages
* @property-read int|null $child_pages_count
* @property-read int|null $pages_count
* @property-read Page|null $parent_page
* @property-read int|null $travel_countries_count
* @method static \Illuminate\Database\Eloquent\Builder|Page findSimilarSlugs(string $attribute, array $config, string $slug)
* @method static \Illuminate\Database\Eloquent\Builder|Page newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Page newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Page query()
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBoxBody($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBoxDiscount($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBoxImageUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBoxStar($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBumaDestination($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereBumaGjr($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCanonicalUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCatalogId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCatalogIndex($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCmsSettings($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereContent($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereContentNew($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereFewoLodging($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereKeyword($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereKeywords($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereLft($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereLvl($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereModel($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereOLDCatalogID($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereOLDOwnerID($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereOrder($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereOwner($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereOwnerSecond($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page wherePagetitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereParentId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page wherePriceTags($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereRealUrlPath($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereRgt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereShowInNavi($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTemplate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTextRight($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTitleShort($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTravelGuideContentId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTravelProgram($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTreeRoot($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Page withUniqueSlugConstraints(\Illuminate\Database\Eloquent\Model $model, string $attribute, array $config, string $slug)
* @mixin \Eloquent
*/
class Page extends Model
{
@ -151,7 +204,7 @@ class Page extends Model
'fewo_lodging'
];
public function sluggable()
public function sluggable(): array
{
return [
'slug' => [
@ -187,7 +240,7 @@ class Page extends Model
public function redirects()
{
return $this->hasMany(Redirect::class);
//return $this->hasMany(Redirect::class);
}
public function travel_countries()