class ConfigurationUrlParser extends ConfigurationUrlParser (View source)
static protected array | $driverAliases | The drivers aliases map. | from ConfigurationUrlParser |
array | parseConfiguration(array|string $config) Parse the database configuration, hydrating options using a database configuration URL if possible. | from ConfigurationUrlParser |
array | getPrimaryOptions(array $url) Get the primary database connection options. | from ConfigurationUrlParser |
string|null | getDriver(array $url) Get the database driver from the URL. | from ConfigurationUrlParser |
string|null | getDatabase(array $url) Get the database name from the URL. | from ConfigurationUrlParser |
array | getQueryOptions(array $url) Get all of the additional database options from the query string. | from ConfigurationUrlParser |
array | parseUrl(string $url) Parse the string URL to an array of components. | from ConfigurationUrlParser |
mixed | parseStringsToNativeTypes(mixed $value) Convert string casted values to their native types. | from ConfigurationUrlParser |
static array | getDriverAliases() Get all of the current drivers aliases. | from ConfigurationUrlParser |
static void | addDriverAlias(string $alias, string $driver) Add the given driver alias to the driver aliases array. | from ConfigurationUrlParser |
Parse the database configuration, hydrating options using a database configuration URL if possible.
Get the primary database connection options.
Get the database driver from the URL.
Get the database name from the URL.
Get all of the additional database options from the query string.
Parse the string URL to an array of components.
Convert string casted values to their native types.
Get all of the current drivers aliases.
Add the given driver alias to the driver aliases array.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/ConfigurationUrlParser.html