class TemplatesRepository 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(FileManager $FileManager)
Create a new TemplatesRepository instance. |
||
| array |
find(string $key)
Gets settings for a template |
|
| array |
lists()
returns a list of all views |
|
| boolean |
saveNew($path $path, $parentPath $parentPath)
saves a new template to the templates config |
|
| boolean |
updateExisting($path $path, $parentPath $parentPath)
saves a new template to the templates config |
|
|
availableViewsList()
|
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 21
public
__construct(FileManager $FileManager)
Create a new TemplatesRepository instance.
at line 32
public array
find(string $key)
Gets settings for a template
at line 42
public array
lists()
returns a list of all views
at line 55
public boolean
saveNew($path $path, $parentPath $parentPath)
saves a new template to the templates config
at line 79
public boolean
updateExisting($path $path, $parentPath $parentPath)
saves a new template to the templates config
at line 95
public
availableViewsList()