PHP Class Domain\Teacher\Http\TeacherController

Inheritance: extends Domain\Http\Controllers\AbstractController
Show file Open project: resultsystems/school

Protected Properties

Property Type Description
$with

Public Methods

Method Description
associateMatters ( AssociateMatterRequest $request, integer $teacher_id ) : array Associate matters.
destroy ( $id ) : mixed Delete teacher.
forceDelete ( $id ) : mixed Force Delete teacher.
index ( ) : Illuminate\Database\Eloquent\Collection Get all teachers.
repo ( )
restore ( $id ) : mixed Restore teacher.
show ( integer $id ) : Illuminate\Database\Eloquent\Model Get teacher by id :id.
store ( StoreRequest $request, TeacherService $service ) : mixed Store new teacher.
update ( UpdateRequest $request, TeacherService $service, $id ) : mixed Update teacher.

Method Details

associateMatters() public method

Associate matters.
public associateMatters ( AssociateMatterRequest $request, integer $teacher_id ) : array
$request Domain\Teacher\Http\Requests\AssociateMatterRequest
$teacher_id integer
return array

destroy() public method

Delete teacher.
public destroy ( $id ) : mixed
return mixed

forceDelete() public method

Force Delete teacher.
public forceDelete ( $id ) : mixed
return mixed

index() public method

Get all teachers.
public index ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection

repo() public method

public repo ( )

restore() public method

Restore teacher.
public restore ( $id ) : mixed
return mixed

show() public method

Get teacher by id :id.
public show ( integer $id ) : Illuminate\Database\Eloquent\Model
$id integer
return Illuminate\Database\Eloquent\Model

store() public method

Store new teacher.
public store ( StoreRequest $request, TeacherService $service ) : mixed
$request Domain\Teacher\Http\Requests\StoreRequest
$service Domain\Teacher\TeacherService
return mixed

update() public method

Update teacher.
public update ( UpdateRequest $request, TeacherService $service, $id ) : mixed
$request Domain\Teacher\Http\Requests\UpdateRequest
$service Domain\Teacher\TeacherService
return mixed

Property Details

$with protected property

protected $with