PHP Class Learner\Http\Controllers\Admin\LinkController

Inheritance: extends BaseController
Datei anzeigen Open project: RryLee/learner.video

Protected Properties

Property Type Description
$links Learner\Repositories\LinkRepositoryInterface Link repository.

Public Methods

Method 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 method

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

destory() public method

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

index() public method

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

store() public method

admin/links post
public store ( ) : Illuminate\Http\JsonResponse
return Illuminate\Http\JsonResponse

update() public method

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

Property Details