PHP Class Learner\Http\Controllers\Admin\LinkController

Inheritance: extends BaseController
Afficher le fichier Open project: RryLee/learner.video

Protected Properties

Свойство Type Description
$links Learner\Repositories\LinkRepositoryInterface Link repository.

Méthodes publiques

Méthode Description
__construct ( Learner\Repositories\LinkRepositoryInterface $links ) Instance the link repository.
destory ( integer $id ) : Illuminate\Http\JsonResponse Delete a link.
index ( ) : Illuminate\Database\Eloquent\Collection | Link[] Get all links.
store ( ) : Illuminate\Http\JsonResponse Store the link.
update ( integer $id ) : Illuminate\Http\JsonResponse Update link by id.

Method Details

__construct() public méthode

Instance the link repository.
public __construct ( Learner\Repositories\LinkRepositoryInterface $links )
$links Learner\Repositories\LinkRepositoryInterface

destory() public méthode

admin/links/{id} delete
public destory ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
Résultat Illuminate\Http\JsonResponse

index() public méthode

admin/links get
public index ( ) : Illuminate\Database\Eloquent\Collection | Link[]
Résultat Illuminate\Database\Eloquent\Collection | Learner\Models\Link[]

store() public méthode

admin/links post
public store ( ) : Illuminate\Http\JsonResponse
Résultat Illuminate\Http\JsonResponse

update() public méthode

admin/links/{id} put
public update ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
Résultat Illuminate\Http\JsonResponse

Property Details