Menu

## BookLending extends Model
in package
uses SoftDeletes

BookLending.php : 31

Class BookLending

Model for managing book lending transactions and history.

##### Tags

mixin

### Table of Contents

#### Properties

$book : Collection|array<string|int, Book>
$book_code_no : string
$created_at : DateTime
$deleted_at : DateTime
$id : int
$issue_date : DateTime
$issued_by : int
$library_card_no : string
$return_date : DateTime
$status : int
$updated_at : DateTime
$user : Collection|array<string|int, User>
$user_id : int
$userlent : User
$fillable : mixed
$table : mixed

#### Methods

book() : HasMany
  Get the books associated with this lending record.
user() : HasMany
  Get the users associated with this lending record.
userlent() : BelongsTo
  Get the user who borrowed this book.

### Properties

#### $book read-only

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

#### $book_code_no

BookLending.php : 0
`public string $book_code_no`

#### $created_at

BookLending.php : 0
`public DateTime $created_at`

#### $deleted_at

BookLending.php : 0
`public DateTime $deleted_at`

#### $id

BookLending.php : 0
`public int $id`

#### $issue_date

BookLending.php : 0
`public DateTime $issue_date`

#### $issued_by

BookLending.php : 0
`public int $issued_by`

#### $library_card_no

BookLending.php : 0
`public string $library_card_no`

#### $return_date

BookLending.php : 0
`public DateTime $return_date`

#### $status

BookLending.php : 0
`public int $status`

#### $updated_at

BookLending.php : 0
`public DateTime $updated_at`

#### $user read-only

BookLending.php : 0
`public Collection|array<string|int, User> $user`

#### $user_id

BookLending.php : 0
`public int $user_id`

#### $userlent read-only

BookLending.php : 0
`public User $userlent`

#### $fillable

BookLending.php : 37
`protected mixed $fillable = ['user_id', 'book_code_no', 'library_card_no', 'issue_date', 'return_date', 'issued_by', 'status']`

#### $table

BookLending.php : 35
`protected mixed $table = 'books_lending'`

### Methods

#### book()

BookLending.php : 56

Get the books associated with this lending record.

`public book() : HasMany`

##### Return values

HasMany

#### user()

BookLending.php : 46

Get the users associated with this lending record.

`public user() : HasMany`

##### Return values

HasMany

#### userlent()

BookLending.php : 66

Get the user who borrowed this book.

`public userlent() : BelongsTo`

##### Return values

BelongsTo

## Search results