Menu

## VisitorLog extends Model
in package
uses SoftDeletes

VisitorLog.php : 44

Class VisitorLog

Model for managing visitor logs for school.

##### Tags

mixin

### Table of Contents

#### Properties

$academic_year_id : int
$academicYear : AcademicYear
$address : string
$company_name : string
$contact_number : string
$created_at : DateTime
$date_of_visit : DateTime
$deleted_at : DateTime
$email : string
$employee : User
$employee_id : int
$entry_time : string
$exit_time : string
$id : int
$name : string
$number_of_visitors : int
$relation : string
$relation_name : string
$relation_with_student : string
$remark : string
$school : School
$school_id : int
$student : User
$student_id : int
$updated_at : DateTime
$visiting_purpose : string
$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 : string
  The table associated with the model.

#### Methods

academicYear() : BelongsTo
  Get the academic year for this visitor log.
employee() : BelongsTo
  Get the employee recording this visitor log.
getstandard() : int|null
  Get the standard/grade for the student being visited.
school() : BelongsTo
  Get the school for this visitor log.
student() : BelongsTo
  Get the student being visited.

### Properties

#### $academic_year_id

VisitorLog.php : 0
`public int $academic_year_id`

#### $academicYear read-only

VisitorLog.php : 0
`public AcademicYear $academicYear`

#### $address

VisitorLog.php : 0
`public string $address`

#### $company_name

VisitorLog.php : 0
`public string $company_name`

#### $contact_number

VisitorLog.php : 0
`public string $contact_number`

#### $created_at

VisitorLog.php : 0
`public DateTime $created_at`

#### $date_of_visit

VisitorLog.php : 0
`public DateTime $date_of_visit`

#### $deleted_at

VisitorLog.php : 0
`public DateTime $deleted_at`

#### $email

VisitorLog.php : 0
`public string $email`

#### $employee read-only

VisitorLog.php : 0
`public User $employee`

#### $employee_id

VisitorLog.php : 0
`public int $employee_id`

#### $entry_time

VisitorLog.php : 0
`public string $entry_time`

#### $exit_time

VisitorLog.php : 0
`public string $exit_time`

#### $id

VisitorLog.php : 0
`public int $id`

#### $name

VisitorLog.php : 0
`public string $name`

#### $number_of_visitors

VisitorLog.php : 0
`public int $number_of_visitors`

#### $relation

VisitorLog.php : 0
`public string $relation`

#### $relation_name

VisitorLog.php : 0
`public string $relation_name`

#### $relation_with_student

VisitorLog.php : 0
`public string $relation_with_student`

#### $remark

VisitorLog.php : 0
`public string $remark`

#### $school read-only

VisitorLog.php : 0
`public School $school`

#### $school_id

VisitorLog.php : 0
`public int $school_id`

#### $student read-only

VisitorLog.php : 0
`public User $student`

#### $student_id

VisitorLog.php : 0
`public int $student_id`

#### $updated_at

VisitorLog.php : 0
`public DateTime $updated_at`

#### $visiting_purpose

VisitorLog.php : 0
`public string $visiting_purpose`

#### $dates

VisitorLog.php : 70

The attributes that should be mutated to dates.

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

#### $fillable

VisitorLog.php : 61

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'academic_year_id', 'email', 'name', 'relation', 'company_name', 'contact_number', 'address', 'student_id', 'relation_with_student', 'relation_name', 'number_of_visitors', 'visiting_purpose', 'employee_id', 'date_of_visit', 'entry_time', 'exit_time', 'remark']`

#### $table

VisitorLog.php : 54

The table associated with the model.

`protected string $table = 'visitor_log'`

### Methods

#### academicYear()

VisitorLog.php : 87

Get the academic year for this visitor log.

`public academicYear() : BelongsTo`

##### Return values

BelongsTo

#### employee()

VisitorLog.php : 107

Get the employee recording this visitor log.

`public employee() : BelongsTo`

##### Return values

BelongsTo

#### getstandard()

VisitorLog.php : 117

Get the standard/grade for the student being visited.

`public getstandard(mixed $student_id) : int|null`

##### Parameters

$student_id : mixed

##### Return values

int|null

#### school()

VisitorLog.php : 77

Get the school for this visitor log.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### student()

VisitorLog.php : 97

Get the student being visited.

`public student() : BelongsTo`

##### Return values

BelongsTo

## Search results