1 | <?php namespace Arcanedev\LaravelMessenger\Traits; |
||
9 | trait ConfigHelper |
||
10 | { |
||
11 | /* ------------------------------------------------------------------------------------------------ |
||
12 | | Helper Functions |
||
13 | | ------------------------------------------------------------------------------------------------ |
||
14 | */ |
||
15 | /** |
||
16 | * Get table from config. |
||
17 | * |
||
18 | * @param string $key |
||
19 | * @param string|null $default |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | protected function getTableFromConfig($key, $default = null) |
||
27 | |||
28 | /** |
||
29 | * Get model from config. |
||
30 | * |
||
31 | * @param string $key |
||
32 | * @param string|null $default |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | protected function getModelFromConfig($key, $default = null) |
||
40 | |||
41 | /** |
||
42 | * Get the value from the laravel-messenger config file. |
||
43 | * |
||
44 | * @param string $key |
||
45 | * @param string|null $default |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | protected function getFromConfig($key, $default = null) |
||
53 | } |
||
54 |