forked from eatvio/eatvio-infra
37 lines
1.7 KiB
PHP
37 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CyrildeWit\EloquentViewable\InteractsWithViews;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
/* use Illuminate\Database\Eloquent\Builder; */
|
|
/* use Illuminate\Database\Eloquent\Casts\Attribute; */
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\BlogPostAuthor
|
|
*
|
|
* @property int $user_id
|
|
* @property int $blog_post_id
|
|
*
|
|
* @property-read \Illuminate\Database\Eloquent\Collection<int, \CyrildeWit\EloquentViewable\View> $views
|
|
* @property-read int|null $views_count
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor orderByUniqueViews(string $direction = 'desc', $period = null, ?string $collection = null, string $as = 'unique_views_count')
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor orderByViews(string $direction = 'desc', ?\CyrildeWit\EloquentViewable\Support\Period $period = null, ?string $collection = null, bool $unique = false, string $as = 'views_count')
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor whereBlogPostId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor whereUserId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|BlogPostAuthor withViewsCount(?\CyrildeWit\EloquentViewable\Support\Period $period = null, ?string $collection = null, bool $unique = false, string $as = 'views_count')
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class BlogPostAuthor extends Model
|
|
{
|
|
use HasFactory, InteractsWithViews;
|
|
|
|
protected $table = 'blog_post_author';
|
|
}
|