1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CSlant\Blog\Core\Models; |
4
|
|
|
|
5
|
|
|
use AllowDynamicProperties; |
6
|
|
|
use Carbon\Carbon; |
7
|
|
|
use CSlant\Blog\Core\Models\Base\BasePost; |
8
|
|
|
use Illuminate\Database\Eloquent\Builder; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* Class Post |
12
|
|
|
* |
13
|
|
|
* @package CSlant\Blog\Core\Models |
14
|
|
|
* |
15
|
|
|
* @property int $id |
16
|
|
|
* @property string $name |
17
|
|
|
* @property string $description |
18
|
|
|
* @property string $content |
19
|
|
|
* @property string $status |
20
|
|
|
* @property int $author_id |
21
|
|
|
* @property string $author_type |
22
|
|
|
* @property int $is_featured |
23
|
|
|
* @property int $view |
24
|
|
|
* @property string $format_type |
25
|
|
|
* @property Carbon $created_at |
26
|
|
|
* @property Carbon $updated_at |
27
|
|
|
* @property string $slug |
28
|
|
|
* @property string $url |
29
|
|
|
* @property array $tags |
30
|
|
|
* @property array $categories |
31
|
|
|
* @property string $image |
32
|
|
|
* @property string $author |
33
|
|
|
* |
34
|
|
|
* @method static Builder|Post newModelQuery() |
35
|
|
|
* @method static Builder|Post newQuery() |
36
|
|
|
* @method static Builder|Post query() |
37
|
|
|
* @method static Builder|Post first() |
38
|
|
|
* @method static Builder|Post find($id) |
39
|
|
|
* @method static Builder|Post with($relations) |
40
|
|
|
* @method static Builder|Post whereId($value) |
41
|
|
|
* @method static Builder|Post whereIn($column, $values) |
42
|
|
|
* @method static Builder|Post where($column, $operator = null, $value = null, $boolean = 'and') |
43
|
|
|
* @method static Post findOrFail($id) |
44
|
|
|
* @method static Post create($data) |
45
|
|
|
* |
46
|
|
|
* @mixin BasePost |
47
|
|
|
*/ |
48
|
|
|
#[AllowDynamicProperties] |
49
|
|
|
class Post extends BasePost |
50
|
|
|
{ |
51
|
|
|
public static function getBaseModel(): string |
52
|
|
|
{ |
53
|
|
|
return 'Botble\Blog\Models\Post'; |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
|