Configs Repository
The config keys and values are usefull for completion and for route picker to get the current url to open the selected route.
local app = require("laravel").app
app("configs_repository"):all():thenCall(function(configs)
vim.print(#configs)
end)
app("configs_repository"):get('app.url'):thenCall(function(value)
vim.print(value)
end)
Depending on the configuration this may be an expense operation Because of that I would advie to use the cache version of it.
local app = require("laravel").app
app("cache_configs_repository"):all():thenCall(function(configs)
vim.print(#configs)
end)
app("cache_configs_repository"):get('app.url'):thenCall(function(value)
vim.print(value)
end)
In case you need to invalidate the cache the method clear
can be use
local app = require("laravel").app
app("cache_configs_repository"):clear()
Source
To get this tinker is essential running php code
// all keys
echo json_encode(array_keys(Arr::dot(Config::all())));
// specif value
echo json_encode(config('app.url'));