class SchoolClass extends BaseModel (View source)

Properties

bool $timestamps
protected string $table
protected array<int,string> $guarded

Methods

save(array $options = [])

Prevents saving, enforcing read-only behavior for view models.

string|null
getIdAttribute(null|string $value)

Converts binary UUID (BLOB) to string representation.

BelongsToMany
students()

Defines the many-to-many relationship between classes and students.

Details

save(array $options = [])

Prevents saving, enforcing read-only behavior for view models.

Parameters

array $options

Exceptions

Exception

string|null getIdAttribute(null|string $value)

Converts binary UUID (BLOB) to string representation.

Parameters

null|string $value

Return Value

string|null

BelongsToMany students()

Defines the many-to-many relationship between classes and students.

Uses the view vw_student_school_class as the pivot table.

Return Value

BelongsToMany