Devise
Class

Devise\Media\Categories\Manager

class Manager

Class Manager manages categories.

A category is basically a directory inside of the /media folder.

Methods

__construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths)

Create a new category manager

bool storeNewCategory($input $input)

Stores the category in the filesystem

bool destroyCategory($input $input)

Removes the category path

renameCategory($path $path, $newName $newName)

Renames a category path

Details

at line 29
public __construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths)

Create a new category manager

Parameters

Filesystem $Filesystem
CategoryPaths $CategoryPaths

at line 43
public bool storeNewCategory($input $input)

Stores the category in the filesystem

Parameters

$input $input

Return Value

bool

Exceptions

CategoryAlreadyExistsException

at line 67
public bool destroyCategory($input $input)

Removes the category path

Parameters

$input $input

Return Value

bool

at line 85
public renameCategory($path $path, $newName $newName)

Renames a category path

Parameters

$path $path
$newName $newName