Property | Type | Description | |
---|---|---|---|
$news | Learner\Repositories\NewsRepositoryInterface | Newsletter repository. | |
$subscribers | Learner\Repositories\SubscriberRepositoryInterface | Subscriber repository. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers, Learner\Repositories\NewsletterRepositoryInterface $news ) | Instance subsciber repository. | |
index ( ) : Illuminate\View\View | Get newsletters list. | |
show ( integer $id ) : Illuminate\View\View | Show a newsletter. | |
subscribe ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | User subscribe to learner. | |
unsubscribe ( ) : Illuminate\Http\RedirectResponse | User unsubscribe to learner. |
public __construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers, Learner\Repositories\NewsletterRepositoryInterface $news ) | ||
$subscribers | Learner\Repositories\SubscriberRepositoryInterface | |
$news | Learner\Repositories\NewsletterRepositoryInterface |
public index ( ) : Illuminate\View\View | ||
return | Illuminate\View\View |
public subscribe ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | ||
$request | Illuminate\Http\Request | |
return | Illuminate\Http\RedirectResponse |
public unsubscribe ( ) : Illuminate\Http\RedirectResponse | ||
return | Illuminate\Http\RedirectResponse |
protected NewsRepositoryInterface,Learner\Repositories $news | ||
return | Learner\Repositories\NewsRepositoryInterface |