PHP Class Learner\Http\Controllers\Admin\NewsletterController

Inheritance: extends BaseController
Datei anzeigen Open project: RryLee/learner.video

Protected Properties

Property Type Description
$news Learner\Repositories\NewsletterRepositoryInterface Newsletter repository.

Public Methods

Method Description
__construct ( Learner\Repositories\NewsletterRepositoryInterface $news ) Instance Newsletter Repository.
destory ( integer $id ) : Illuminate\Http\JsonResponse Delete a newsletter.
index ( ) : Illuminate\Http\JsonResponse All newsletter.
publish ( integer $id ) : Illuminate\Http\JsonResponse Publish a newsletter.
store ( ) : Illuminate\Http\JsonResponse Store the first newsletter.

Method Details

__construct() public method

Instance Newsletter Repository.
public __construct ( Learner\Repositories\NewsletterRepositoryInterface $news )
$news Learner\Repositories\NewsletterRepositoryInterface

destory() public method

newsletters/publish/{id} delete
public destory ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
return Illuminate\Http\JsonResponse

index() public method

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

publish() public method

admin/newsletters/publish/{id} post
public publish ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
return Illuminate\Http\JsonResponse

store() public method

admin/newsletters post
public store ( ) : Illuminate\Http\JsonResponse
return Illuminate\Http\JsonResponse

Property Details

$news protected_oe property

Newsletter repository.
protected NewsletterRepositoryInterface,Learner\Repositories $news
return Learner\Repositories\NewsletterRepositoryInterface