Menu

## School extends Model
in package
uses HasFactory

School.php : 63

Class School

Model for managing school information and relationships.

##### Tags

mixin

### Table of Contents

#### Properties

$academicYear : Collection|array<string|int, AcademicYear>
$activeMembers : int
$address : string
$admin : Collection|array<string|int, User>
$assignment : Collection|array<string|int, Assignment>
$attendance : Collection|array<string|int, Attendance>
$bulletin : Collection|array<string|int, Bulletin>
$city : City
$city_id : int
$country : Country
$country_id : int
$created_at : DateTime
$discipline : Collection|array<string|int, Discipline>
$document : Collection|array<string|int, Document>
$email : string
$event : Collection|array<string|int, Events>
$fee : Collection|array<string|int, Fee>
$fulladdress : string
$id : int
$leaveType : Collection|array<string|int, LeaveType>
$name : string
$parentprofile : Collection|array<string|int, ParentProfile>
$phone : string
$pincode : string
$promotion : Collection|array<string|int, Promotion>
$reminder : Collection|array<string|int, Reminder>
$schoolDetail : Collection|array<string|int, SchoolDetail>
$schoolDetailBoard : SchoolDetail
$schoolDetailLogo : SchoolDetail
$section : Collection|array<string|int, Section>
$sendMail : Collection|array<string|int, SendMail>
$slug : string
$standard : Collection|array<string|int, Standard>
$state : State
$state_id : int
$status : int
$studentAcademic : Collection|array<string|int, StudentAcademic>
$subject : Collection|array<string|int, Subject>
$subscription : Collection|array<string|int, Subscription>
$teacher : Collection|array<string|int, User>
$teacherLeaveApplication : Collection|array<string|int, TeacherLeaveApplication>
$teacherprofile : Collection|array<string|int, TeacherProfile>
$timetable : Collection|array<string|int, Timetable>
$updated_at : DateTime
$user : Collection|array<string|int, User>
$userprofile : Collection|array<string|int, Userprofile>
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

academicYear() : HasMany
  Get academic years for this school.
admin() : HasMany
  Get admin users in this school.
assignment() : HasMany
  Get assignments for this school.
attendance() : HasMany
  Get attendance records for this school.
bulletin() : HasMany
  Get bulletins for this school.
city() : BelongsTo
  Get the city for this school.
country() : BelongsTo
  Get the country for this school.
discipline() : HasMany
  Get discipline records for this school.
document() : HasMany
  Get documents for this school.
event() : HasMany
  Get events for this school.
fee() : HasMany
  Get fee records for this school.
fulladdress() : string
  Get the full address for this school.
getActiveMembersAttribute() : int
  Get count of active members in this school.
getDetails() : array<string|int, mixed>
  Get detailed information about school users.
leaveType() : HasMany
  Get leave types for this school.
parentprofile() : HasMany
  Get parent profiles for this school.
promotion() : HasMany
  Get promotions for this school.
reminder() : HasMany
  Get reminders for this school.
schoolDetail() : HasMany
  Get school details (metadata).
schoolDetailBoard() : HasOne
  Get school board detail.
schoolDetailLogo() : HasOne
  Get school logo detail.
scopeIsActive() : Builder
  Scope to filter active schools.
section() : HasMany
  Get sections in this school.
sendMail() : HasMany
  Get sent mails for this school.
standard() : HasMany
  Get standards/grades in this school.
state() : BelongsTo
  Get the state for this school.
studentAcademic() : HasMany
  Get student academic records for this school.
subject() : HasMany
  Get subjects in this school.
subscription() : HasMany
  Get subscriptions for this school.
teacher() : HasMany
  Get teachers in this school.
teacherLeaveApplication() : HasMany
  Get teacher leave applications for this school.
teacherprofile() : HasMany
  Get teacher profiles for this school.
timetable() : HasMany
  Get timetables for this school.
user() : HasMany
  Get all users in this school.
userprofile() : HasMany
  Get user profiles for users in this school.

### Properties

#### $academicYear read-only

School.php : 0
`public Collection|array<string|int, AcademicYear> $academicYear`

#### $activeMembers

School.php : 0
`public int $activeMembers`

#### $address

School.php : 0
`public string $address`

#### $admin read-only

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

#### $assignment read-only

School.php : 0
`public Collection|array<string|int, Assignment> $assignment`

#### $attendance read-only

School.php : 0
`public Collection|array<string|int, Attendance> $attendance`

#### $bulletin read-only

School.php : 0
`public Collection|array<string|int, Bulletin> $bulletin`

#### $city read-only

School.php : 0
`public City $city`

#### $city_id

School.php : 0
`public int $city_id`

#### $country read-only

School.php : 0
`public Country $country`

#### $country_id

School.php : 0
`public int $country_id`

#### $created_at

School.php : 0
`public DateTime $created_at`

#### $discipline read-only

School.php : 0
`public Collection|array<string|int, Discipline> $discipline`

#### $document read-only

School.php : 0
`public Collection|array<string|int, Document> $document`

#### $email

School.php : 0
`public string $email`

#### $event read-only

School.php : 0
`public Collection|array<string|int, Events> $event`

#### $fee read-only

School.php : 0
`public Collection|array<string|int, Fee> $fee`

#### $fulladdress

School.php : 0
`public string $fulladdress`

#### $id

School.php : 0
`public int $id`

#### $leaveType read-only

School.php : 0
`public Collection|array<string|int, LeaveType> $leaveType`

#### $name

School.php : 0
`public string $name`

#### $parentprofile read-only

School.php : 0
`public Collection|array<string|int, ParentProfile> $parentprofile`

#### $phone

School.php : 0
`public string $phone`

#### $pincode

School.php : 0
`public string $pincode`

#### $promotion read-only

School.php : 0
`public Collection|array<string|int, Promotion> $promotion`

#### $reminder read-only

School.php : 0
`public Collection|array<string|int, Reminder> $reminder`

#### $schoolDetail read-only

School.php : 0
`public Collection|array<string|int, SchoolDetail> $schoolDetail`

#### $schoolDetailBoard read-only

School.php : 0
`public SchoolDetail $schoolDetailBoard`

#### $schoolDetailLogo read-only

School.php : 0
`public SchoolDetail $schoolDetailLogo`

#### $section read-only

School.php : 0
`public Collection|array<string|int, Section> $section`

#### $sendMail read-only

School.php : 0
`public Collection|array<string|int, SendMail> $sendMail`

#### $slug

School.php : 0
`public string $slug`

#### $standard read-only

School.php : 0
`public Collection|array<string|int, Standard> $standard`

#### $state read-only

School.php : 0
`public State $state`

#### $state_id

School.php : 0
`public int $state_id`

#### $status

School.php : 0
`public int $status`

#### $studentAcademic read-only

School.php : 0
`public Collection|array<string|int, StudentAcademic> $studentAcademic`

#### $subject read-only

School.php : 0
`public Collection|array<string|int, Subject> $subject`

#### $subscription read-only

School.php : 0
`public Collection|array<string|int, Subscription> $subscription`

#### $teacher read-only

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

#### $teacherLeaveApplication read-only

School.php : 0
`public Collection|array<string|int, TeacherLeaveApplication> $teacherLeaveApplication`

#### $teacherprofile read-only

School.php : 0
`public Collection|array<string|int, TeacherProfile> $teacherprofile`

#### $timetable read-only

School.php : 0
`public Collection|array<string|int, Timetable> $timetable`

#### $updated_at

School.php : 0
`public DateTime $updated_at`

#### $user read-only

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

#### $userprofile read-only

School.php : 0
`public Collection|array<string|int, Userprofile> $userprofile`

#### $fillable

School.php : 80

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['name', 'email', 'phone', 'address', 'country_id', 'state_id', 'city_id', 'pincode', 'slug', 'status']`

#### $table

School.php : 73

The table associated with the model.

`protected string $table = 'schools'`

### Methods

#### academicYear()

School.php : 149

Get academic years for this school.

`public academicYear() : HasMany`

##### Return values

HasMany

#### admin()

School.php : 209

Get admin users in this school.

`public admin() : HasMany`

##### Return values

HasMany

#### assignment()

School.php : 385

Get assignments for this school.

`public assignment() : HasMany`

##### Return values

HasMany

#### attendance()

School.php : 365

Get attendance records for this school.

`public attendance() : HasMany`

##### Return values

HasMany

#### bulletin()

School.php : 276

Get bulletins for this school.

`public bulletin() : HasMany`

##### Return values

HasMany

#### city()

School.php : 109

Get the city for this school.

`public city() : BelongsTo`

##### Return values

BelongsTo

#### country()

School.php : 89

Get the country for this school.

`public country() : BelongsTo`

##### Return values

BelongsTo

#### discipline()

School.php : 355

Get discipline records for this school.

`public discipline() : HasMany`

##### Return values

HasMany

#### document()

School.php : 435

Get documents for this school.

`public document() : HasMany`

##### Return values

HasMany

#### event()

School.php : 229

Get events for this school.

`public event() : HasMany`

##### Return values

HasMany

#### fee()

School.php : 425

Get fee records for this school.

`public fee() : HasMany`

##### Return values

HasMany

#### fulladdress()

School.php : 259

Get the full address for this school.

`public fulladdress() : string`

##### Return values

string

#### getActiveMembersAttribute()

School.php : 312

Get count of active members in this school.

`public getActiveMembersAttribute() : int`

##### Return values

int

#### getDetails()

School.php : 445

Get detailed information about school users.

`public getDetails() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### leaveType()

School.php : 405

Get leave types for this school.

`public leaveType() : HasMany`

##### Return values

HasMany

#### parentprofile()

School.php : 335

Get parent profiles for this school.

`public parentprofile() : HasMany`

##### Return values

HasMany

#### promotion()

School.php : 345

Get promotions for this school.

`public promotion() : HasMany`

##### Return values

HasMany

#### reminder()

School.php : 249

Get reminders for this school.

`public reminder() : HasMany`

##### Return values

HasMany

#### schoolDetail()

School.php : 119

Get school details (metadata).

`public schoolDetail() : HasMany`

##### Return values

HasMany

#### schoolDetailBoard()

School.php : 129

Get school board detail.

`public schoolDetailBoard() : HasOne`

##### Return values

HasOne

#### schoolDetailLogo()

School.php : 139

Get school logo detail.

`public schoolDetailLogo() : HasOne`

##### Return values

HasOne

#### scopeIsActive()

School.php : 298

Scope to filter active schools.

`public scopeIsActive(Builder $query, int $school_id) : Builder`

##### Parameters

$query : Builder
$school_id : int

##### Return values

Builder

#### section()

School.php : 169

Get sections in this school.

`public section() : HasMany`

##### Return values

HasMany

#### sendMail()

School.php : 286

Get sent mails for this school.

`public sendMail() : HasMany`

##### Return values

HasMany

#### standard()

School.php : 179

Get standards/grades in this school.

`public standard() : HasMany`

##### Return values

HasMany

#### state()

School.php : 99

Get the state for this school.

`public state() : BelongsTo`

##### Return values

BelongsTo

#### studentAcademic()

School.php : 159

Get student academic records for this school.

`public studentAcademic() : HasMany`

##### Return values

HasMany

#### subject()

School.php : 395

Get subjects in this school.

`public subject() : HasMany`

##### Return values

HasMany

#### subscription()

School.php : 239

Get subscriptions for this school.

`public subscription() : HasMany`

##### Return values

HasMany

#### teacher()

School.php : 199

Get teachers in this school.

`public teacher() : HasMany`

##### Return values

HasMany

#### teacherLeaveApplication()

School.php : 415

Get teacher leave applications for this school.

`public teacherLeaveApplication() : HasMany`

##### Return values

HasMany

#### teacherprofile()

School.php : 325

Get teacher profiles for this school.

`public teacherprofile() : HasMany`

##### Return values

HasMany

#### timetable()

School.php : 375

Get timetables for this school.

`public timetable() : HasMany`

##### Return values

HasMany

#### user()

School.php : 189

Get all users in this school.

`public user() : HasMany`

##### Return values

HasMany

#### userprofile()

School.php : 219

Get user profiles for users in this school.

`public userprofile() : HasMany`

##### Return values

HasMany

## Search results