PHP Class Learner\Http\Controllers\Admin\SubscriberController

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

Protected Properties

Свойство Type Description
$subscribers Learner\Repositories\SubscriberRepositoryInterface Subscriber repository.

Méthodes publiques

Méthode 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 méthode

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

destory() public méthode

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

index() public méthode

admin/subscribers get
public index ( ) : Illuminate\Http\JsonResponse
Résultat Illuminate\Http\JsonResponse

Property Details

$subscribers protected_oe property

Subscriber repository.
protected SubscriberRepositoryInterface,Learner\Repositories $subscribers
Résultat Learner\Repositories\SubscriberRepositoryInterface