1 | <?php |
||
13 | class ConfigurationsController extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * Limit the config results based on given key. |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $limits = [ |
||
21 | 'site' => ['name', 'version', 'keywords', 'author', 'description', 'admin_theme', 'registration'], |
||
22 | 'app' => ['name', 'debug', 'debugbar', 'env', 'locale', 'log', 'timezone', 'url'], |
||
23 | 'database' => ['default', 'connections', 'migrations', 'redis'], |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * Site configuration setup page. |
||
28 | * |
||
29 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
30 | */ |
||
31 | public function index() |
||
37 | |||
38 | /** |
||
39 | * Get configuration setup. |
||
40 | * |
||
41 | * @return \Illuminate\Support\Collection |
||
42 | */ |
||
43 | protected function setupConfig() |
||
83 | |||
84 | /** |
||
85 | * Store submitted configurations. |
||
86 | * |
||
87 | * @param \Illuminate\Http\Request $request |
||
88 | */ |
||
89 | public function store(Request $request) |
||
104 | |||
105 | /** |
||
106 | * Remove configuration by key. |
||
107 | * |
||
108 | * @param string $key |
||
109 | * @return Configuration |
||
110 | */ |
||
111 | public function destroy($key) |
||
115 | |||
116 | /** |
||
117 | * Show configuration by key. |
||
118 | * |
||
119 | * @param string $key |
||
120 | * @return array|mixed |
||
121 | */ |
||
122 | public function show($key) |
||
132 | } |
||
133 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.