Devise
Class

Devise\Pages\Repositories\TemplatesRepository

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

Parameters

Eloquent $model
array $input

Return Value

false | ParticipanLocation

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

Parameters

Eloquent $model
int $id
array $input

Return Value

false | Instance Of $model

at line 21
public __construct(FileManager $FileManager)

Create a new TemplatesRepository instance.

Parameters

FileManager $FileManager

at line 32
public array find(string $key)

Gets settings for a template

Parameters

string $key

Return Value

array

at line 42
public array lists()

returns a list of all views

Return Value

array

at line 55
public boolean saveNew($path $path, $parentPath $parentPath)

saves a new template to the templates config

Parameters

$path $path
$parentPath $parentPath

Return Value

boolean

at line 79
public boolean updateExisting($path $path, $parentPath $parentPath)

saves a new template to the templates config

Parameters

$path $path
$parentPath $parentPath

Return Value

boolean

at line 95
public availableViewsList()