Menu

## ClassRoomPageDetail extends Model
in package
uses SoftDeletes

ClassRoomPageDetail.php : 29

Class ClassRoomPageDetail

Model for managing user interactions with classroom pages.

##### Tags

mixin

### Table of Contents

#### Properties

$classRoomPage : ClassRoomPage
$created_at : DateTime
$deleted_at : DateTime
$dislike : int
$id : int
$is_following : int
$like : int
$page_id : int
$status : int
$updated_at : DateTime
$user : User
$user_id : int
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : mixed

#### Methods

classRoomPage() : BelongsTo
  Get the classroom page for this detail record.
scopeByLike() : Collection
  Scope to get records with likes for a specific page.
scopeByUnlike() : int
  Scope to count records with dislikes for a specific page.
user() : BelongsTo
  Get the user for this page detail record.

### Properties

#### $classRoomPage read-only

ClassRoomPageDetail.php : 0
`public ClassRoomPage $classRoomPage`

#### $created_at

ClassRoomPageDetail.php : 0
`public DateTime $created_at`

#### $deleted_at

ClassRoomPageDetail.php : 0
`public DateTime $deleted_at`

#### $dislike

ClassRoomPageDetail.php : 0
`public int $dislike`

#### $id

ClassRoomPageDetail.php : 0
`public int $id`

#### $is_following

ClassRoomPageDetail.php : 0
`public int $is_following`

#### $like

ClassRoomPageDetail.php : 0
`public int $like`

#### $page_id

ClassRoomPageDetail.php : 0
`public int $page_id`

#### $status

ClassRoomPageDetail.php : 0
`public int $status`

#### $updated_at

ClassRoomPageDetail.php : 0
`public DateTime $updated_at`

#### $user read-only

ClassRoomPageDetail.php : 0
`public User $user`

#### $user_id

ClassRoomPageDetail.php : 0
`public int $user_id`

#### $dates

ClassRoomPageDetail.php : 50

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $dates = ['deleted_at']`

#### $fillable

ClassRoomPageDetail.php : 41

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['user_id', 'page_id', 'is_following', 'like', 'dislike', 'status']`

#### $table

ClassRoomPageDetail.php : 33
`protected mixed $table = 'class_room_page_details'`

### Methods

#### classRoomPage()

ClassRoomPageDetail.php : 67

Get the classroom page for this detail record.

`public classRoomPage() : BelongsTo`

##### Return values

BelongsTo

#### scopeByLike()

ClassRoomPageDetail.php : 79

Scope to get records with likes for a specific page.

`public scopeByLike(Builder $query, int $page_id) : Collection`

##### Parameters

$query : Builder
$page_id : int

##### Return values

Collection

#### scopeByUnlike()

ClassRoomPageDetail.php : 94

Scope to count records with dislikes for a specific page.

`public scopeByUnlike(Builder $query, int $page_id) : int`

##### Parameters

$query : Builder
$page_id : int

##### Return values

int

#### user()

ClassRoomPageDetail.php : 57

Get the user for this page detail record.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results