class PostForm extends Form (View source)

Methods

__construct(Post $post)

No description

array
fields()

No description

bool
submit(Request $request)

Validate the request and save the model.

from  Form
FormRequest
validate(Request $request)

Validate the request.

from  Form
bool
save(FormRequest $request)

Save the model.

from  Form

Details

__construct(Post $post)

No description

Parameters

Post $post

array fields()

No description

Return Value

array

bool submit(Request $request)

Validate the request and save the model.

Parameters

Request $request

Return Value

bool

FormRequest validate(Request $request)

Validate the request.

Parameters

Request $request

Return Value

FormRequest

bool save(FormRequest $request)

Save the model.

Parameters

FormRequest $request

Return Value

bool