abstract class Form (View source)

Methods

__construct(Model $model)

No description

array
fields()

No description

bool
submit(Request $request)

Validate the request and save the model.

FormRequest
validate(Request $request)

Validate the request.

bool
save(FormRequest $request)

Save the model.

Details

__construct(Model $model)

No description

Parameters

Model $model

abstract 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