Property | Type | Description | |
---|---|---|---|
$subscribers | Learner\Repositories\SubscriberRepositoryInterface | Subscriber repository. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers ) | Instance the subscriber repository. | |
destory ( integer $email ) : Illuminate\Http\JsonResponse | Remove a subscriber from database. | |
index ( ) : Illuminate\Http\JsonResponse | Get all subscribers. |
public __construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers ) | ||
$subscribers | Learner\Repositories\SubscriberRepositoryInterface |
public index ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |