PHP Class Domain\Student\StudentRepository

Inheritance: extends Domain\Repositories\BaseRepository
Show file Open project: resultsystems/school Class Usage Examples

Public Methods

Method Description
betweenDays ( integer $start, integer $end ) Get student when day of payment has between :start and :end.
getBillets ( $student_id )
getWithClassrooms ( integer $student_id ) : Illuminate\Database\Eloquent\Collection Get classrooms by student id.
getWithClassroomsAndMatters ( integer $student_id ) : Illuminate\Database\Eloquent\Collection Get student with classrooms and matters by student id.
model ( )

Method Details

betweenDays() public method

Get student when day of payment has between :start and :end.
public betweenDays ( integer $start, integer $end )
$start integer
$end integer

getBillets() public method

public getBillets ( $student_id )

getWithClassrooms() public method

Get classrooms by student id.
public getWithClassrooms ( integer $student_id ) : Illuminate\Database\Eloquent\Collection
$student_id integer
return Illuminate\Database\Eloquent\Collection

getWithClassroomsAndMatters() public method

Get student with classrooms and matters by student id.
public getWithClassroomsAndMatters ( integer $student_id ) : Illuminate\Database\Eloquent\Collection
$student_id integer
return Illuminate\Database\Eloquent\Collection

model() public method

public model ( )