Menu

## BookCategory extends Model
in package

BookCategory.php : 22

Class BookCategory

Model for managing book categories in the library system.

##### Tags

mixin

### Table of Contents

#### Properties

$book : Collection|array<string|int, Book>
$category : string
$created_at : DateTime
$id : int
$school_id : int
$updated_at : DateTime
$fillable : mixed
$table : mixed

#### Methods

book() : HasMany
  Get the books in this category.

### Properties

#### $book read-only

BookCategory.php : 0
`public Collection|array<string|int, Book> $book`

#### $category

BookCategory.php : 0
`public string $category`

#### $created_at

BookCategory.php : 0
`public DateTime $created_at`

#### $id

BookCategory.php : 0
`public int $id`

#### $school_id

BookCategory.php : 0
`public int $school_id`

#### $updated_at

BookCategory.php : 0
`public DateTime $updated_at`

#### $fillable

BookCategory.php : 26
`protected mixed $fillable = ['school_id', 'category']`

#### $table

BookCategory.php : 24
`protected mixed $table = 'books_category'`

### Methods

#### book()

BookCategory.php : 35

Get the books in this category.

`public book() : HasMany`

##### Return values

HasMany

## Search results