class NewsletterController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

mixed
index()

Shows the sign up page.

Response
create(StoreNewsletterSubscriber $request)

Creates a new newsletter subscriber

mixed
verify(EmailVerificationRequest $request)

Verify a subscription.

mixed
created()

Shows the created page.

mixed
subscribed()

Shows the subscribed page.

mixed
unsubscribe()

Shows the unsubscribe page.

mixed
destroy(DestroyNewsletterSubscriber $request)

Deletes a newsletter subscriber.

mixed
unsubscribed()

Shows the unsubscribed page.

mixed
show(Request $request, int $id)

Shows the newsletter.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

at line 23
mixed index()

Shows the sign up page.

Return Value

mixed

at line 34
Response create(StoreNewsletterSubscriber $request)

Creates a new newsletter subscriber

Parameters

StoreNewsletterSubscriber $request

Return Value

Response

at line 57
mixed verify(EmailVerificationRequest $request)

Verify a subscription.

Parameters

EmailVerificationRequest $request

Return Value

mixed

at line 69
mixed created()

Shows the created page.

Return Value

mixed

at line 79
mixed subscribed()

Shows the subscribed page.

Return Value

mixed

at line 89
mixed unsubscribe()

Shows the unsubscribe page.

Return Value

mixed

at line 100
mixed destroy(DestroyNewsletterSubscriber $request)

Deletes a newsletter subscriber.

Parameters

DestroyNewsletterSubscriber $request

Return Value

mixed

at line 117
mixed unsubscribed()

Shows the unsubscribed page.

Return Value

mixed

at line 129
mixed show(Request $request, int $id)

Shows the newsletter.

Parameters

Request $request
int $id

Return Value

mixed