1 | <?php namespace Arcanedev\Assets\Helpers; |
||
11 | class Workspaces |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Main Methods |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** |
||
19 | * Get the default workspace name. |
||
20 | * |
||
21 | * @param string|null $default |
||
22 | * |
||
23 | * @return \Illuminate\Config\Repository|mixed |
||
24 | */ |
||
25 | 4 | public static function getDefaultName($default = null) |
|
29 | |||
30 | /** |
||
31 | * Get the workspace configs. |
||
32 | * |
||
33 | * @param string $name |
||
34 | * @param array|null $default |
||
35 | * |
||
36 | * @return array|null |
||
37 | */ |
||
38 | 4 | public static function get($name, $default = null) |
|
42 | |||
43 | /** |
||
44 | * Get all the workspaces. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 16 | public static function all() |
|
52 | |||
53 | /** |
||
54 | * Get all workspaces' names. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | 4 | public static function keys() |
|
62 | |||
63 | /** |
||
64 | * Get all the root directories. |
||
65 | * |
||
66 | * @return array|mixed |
||
67 | */ |
||
68 | 4 | public static function getAllRootDirectories() |
|
72 | } |
||
73 |