You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Models/HashtagFollow.php

41 lines
1.4 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
/**
* @property int $id
* @property int $user_id
* @property int $profile_id
* @property int $hashtag_id
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property-read Hashtag|null $hashtag
*
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereHashtagId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereProfileId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|HashtagFollow whereUserId($value)
*
* @mixin \Eloquent
*/
class HashtagFollow extends Model
{
protected $guarded = [];
const MAX_LIMIT = 25;
public function hashtag(): BelongsTo
{
return $this->belongsTo(Hashtag::class);
}
}