PHP Class Learner\Http\Controllers\Admin\SubscriberController

Inheritance: extends BaseController
Exibir arquivo Open project: RryLee/learner.video

Protected Properties

Property Type Description
$subscribers Learner\Repositories\SubscriberRepositoryInterface Subscriber repository.

Public Methods

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.

Method Details

__construct() public method

Instance the subscriber repository.
public __construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers )
$subscribers Learner\Repositories\SubscriberRepositoryInterface

destory() public method

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

index() public method

admin/subscribers get
public index ( ) : Illuminate\Http\JsonResponse
return Illuminate\Http\JsonResponse

Property Details

$subscribers protected_oe property

Subscriber repository.
protected SubscriberRepositoryInterface,Learner\Repositories $subscribers
return Learner\Repositories\SubscriberRepositoryInterface