PHP Class Domain\Teacher\Http\TeacherController

Inheritance: extends Domain\Http\Controllers\AbstractController
Afficher le fichier Open project: resultsystems/school

Protected Properties

Свойство Type Description
$with

Méthodes publiques

Méthode 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 méthode

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

destroy() public méthode

Delete teacher.
public destroy ( $id ) : mixed
Résultat mixed

forceDelete() public méthode

Force Delete teacher.
public forceDelete ( $id ) : mixed
Résultat mixed

index() public méthode

Get all teachers.
public index ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

repo() public méthode

public repo ( )

restore() public méthode

Restore teacher.
public restore ( $id ) : mixed
Résultat mixed

show() public méthode

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

store() public méthode

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

update() public méthode

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

Property Details

$with protected_oe property

protected $with