class FieldsRepository extends BaseRepository
Properties
| Validator | $validator | The Validator instac |
| Array | $message | Any validation or error message |
| Array | $errors | Any array of error message |
Methods
| false |
simpleStore(Eloquent $model, array $input)
Accepts a model instance, input data, validates and saves a new record |
from BaseRepository |
| false |
simpleUpdate(Eloquent $model, int $id, array $input)
Validates input data and updates a record will return false or an instance of the model |
from BaseRepository |
|
__construct(Field $Field)
Create a new TemplatesRepository instance. |
||
| void |
saveNew(string $field)
saves a new field |
|
| void |
updateExisting($id, $field)
updates an existing field record |
|
| object |
retrieveForScanner(string $path, string $name)
retrieves a field by it's name where the template path matches given or template is blank (global) |
Details
in BaseRepository at line 34
public false
simpleStore(Eloquent $model, array $input)
Accepts a model instance, input data, validates and saves a new record
in BaseRepository at line 56
public false
simpleUpdate(Eloquent $model, int $id, array $input)
Validates input data and updates a record will return false or an instance of the model
at line 20
public
__construct(Field $Field)
Create a new TemplatesRepository instance.
at line 31
public void
saveNew(string $field)
saves a new field
at line 48
public void
updateExisting($id, $field)
updates an existing field record
at line 66
public object
retrieveForScanner(string $path, string $name)
retrieves a field by it's name where the template path matches given or template is blank (global)