PHP Class Learner\Http\Controllers\NewsletterController

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

Protected Properties

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

Méthodes publiques

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

Method Details

__construct() public méthode

Instance subsciber repository.
public __construct ( Learner\Repositories\SubscriberRepositoryInterface $subscribers, Learner\Repositories\NewsletterRepositoryInterface $news )
$subscribers Learner\Repositories\SubscriberRepositoryInterface
$news Learner\Repositories\NewsletterRepositoryInterface

index() public méthode

newsletters get
public index ( ) : Illuminate\View\View
Résultat Illuminate\View\View

show() public méthode

newsletters/{id} get
public show ( integer $id ) : Illuminate\View\View
$id integer
Résultat Illuminate\View\View

subscribe() public méthode

newsletters/subscribe post
public subscribe ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse
$request Illuminate\Http\Request
Résultat Illuminate\Http\RedirectResponse

unsubscribe() public méthode

newsletters/unsubscribe post
public unsubscribe ( ) : Illuminate\Http\RedirectResponse
Résultat Illuminate\Http\RedirectResponse

Property Details

$news protected_oe property

Newsletter repository.
protected NewsRepositoryInterface,Learner\Repositories $news
Résultat Learner\Repositories\NewsRepositoryInterface

$subscribers protected_oe property

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