1 | <?php |
||
7 | trait PathHelpers |
||
8 | { |
||
9 | /** |
||
10 | * Get a value from the config array. |
||
11 | * |
||
12 | * @param string|array $value |
||
13 | * |
||
14 | * @return mixed |
||
15 | */ |
||
16 | abstract public function get($value); |
||
17 | |||
18 | /** |
||
19 | * Return the database directory path. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getDatabaseDirectory() |
||
27 | |||
28 | /** |
||
29 | * Return the migration directory path. |
||
30 | * |
||
31 | * @param string $path |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getMigrationDirectory($path = '') |
||
39 | |||
40 | /** |
||
41 | * Return the factory directory path. |
||
42 | * |
||
43 | * @param string $path |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getFactoryDirectory($path = '') |
||
51 | |||
52 | /** |
||
53 | * Return the seeds directory path. |
||
54 | * |
||
55 | * @param string $path |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getSeedDirectory($path = '') |
||
63 | |||
64 | /** |
||
65 | * Make database directory structure if it doesn't exist. |
||
66 | */ |
||
67 | public function getAllDatabaseDirectories() |
||
76 | |||
77 | /** |
||
78 | * Get the console directory path. |
||
79 | * |
||
80 | * @param string $path |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getConsoleDirectory($path = '') |
||
91 | |||
92 | /** |
||
93 | * Get the commands directory path. |
||
94 | * |
||
95 | * @param string $path |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getCommandsDirectory($path = '') |
||
106 | } |
||
107 |