turahe /
laravel-counters
| 1 | <?php |
||
| 2 | namespace Turahe\Counters\Tests\Models; |
||
| 3 | |||
| 4 | use Turahe\Counters\Traits\HasCounter; |
||
| 5 | use Illuminate\Database\Eloquent\Model; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Turahe\Counters\Tests\Models\Post |
||
| 9 | * |
||
| 10 | * @property int $id |
||
| 11 | * @property int|null $category_id |
||
| 12 | * @property int $user_id |
||
| 13 | * @property string $slug |
||
| 14 | * @property string $title |
||
| 15 | * @property string|null $subtitle subtitle of title post |
||
| 16 | * @property string|null $description description of post |
||
| 17 | * @property string $content_raw |
||
| 18 | * @property string $content_html |
||
| 19 | * @property string $type |
||
| 20 | * @property int $is_sticky |
||
| 21 | * @property string|null $published_at |
||
| 22 | * @property string|null $layout |
||
| 23 | * @property int|null $record_left |
||
| 24 | * @property int|null $record_right |
||
| 25 | * @property int|null $record_dept |
||
| 26 | * @property int|null $record_ordering |
||
| 27 | * @property int|null $parent_id |
||
| 28 | * @property string|null $deleted_at |
||
| 29 | * @property \Illuminate\Support\Carbon|null $created_at |
||
| 30 | * @property \Illuminate\Support\Carbon|null $updated_at |
||
| 31 | * @property-read \Illuminate\Database\Eloquent\Collection|\Turahe\Counters\Models\Counter[] $counters |
||
| 32 | * @property-read int|null $counters_count |
||
| 33 | * @method static \Illuminate\Database\Eloquent\Builder|Post newModelQuery() |
||
| 34 | * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() |
||
| 35 | * @method static \Illuminate\Database\Eloquent\Builder|Post query() |
||
| 36 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereCategoryId($value) |
||
| 37 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereContentHtml($value) |
||
| 38 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereContentRaw($value) |
||
| 39 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) |
||
| 40 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereDeletedAt($value) |
||
| 41 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereDescription($value) |
||
| 42 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) |
||
| 43 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereIsSticky($value) |
||
| 44 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereLayout($value) |
||
| 45 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereParentId($value) |
||
| 46 | * @method static \Illuminate\Database\Eloquent\Builder|Post wherePublishedAt($value) |
||
| 47 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereRecordDept($value) |
||
| 48 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereRecordLeft($value) |
||
| 49 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereRecordOrdering($value) |
||
| 50 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereRecordRight($value) |
||
| 51 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereSlug($value) |
||
| 52 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereSubtitle($value) |
||
| 53 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereTitle($value) |
||
| 54 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereType($value) |
||
| 55 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) |
||
| 56 | * @method static \Illuminate\Database\Eloquent\Builder|Post whereUserId($value) |
||
| 57 | * @mixin \Eloquent |
||
| 58 | */ |
||
| 59 | class Post extends Model |
||
| 60 | { |
||
| 61 | use HasCounter; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 62 | |||
| 63 | /** |
||
| 64 | * The table associated with the model. |
||
| 65 | * |
||
| 66 | * @var string |
||
| 67 | */ |
||
| 68 | protected $table = 'posts'; |
||
| 69 | /** |
||
| 70 | * The attributes that aren't mass assignable. |
||
| 71 | * |
||
| 72 | * @var array |
||
| 73 | */ |
||
| 74 | protected $guarded = []; |
||
| 75 | } |
||
| 76 |