Property | Type | Description | |
---|---|---|---|
$links | Learner\Repositories\LinkRepositoryInterface | Link repository. |
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 | |
Get all links. | |
store ( ) : Illuminate\Http\JsonResponse | Store the link. | |
update ( integer $id ) : Illuminate\Http\JsonResponse | Update link by id. |
public __construct ( Learner\Repositories\LinkRepositoryInterface $links ) | ||
$links | Learner\Repositories\LinkRepositoryInterface |
public index ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public store ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |