AppConfig class final

Core application settings (config/app.php parity).

Implemented types

Constructors

AppConfig({required String name, required String env, required bool debug, required String url, required String timezone, required String locale, int laravelCompat = defaultLaravelCompat})
const
AppConfig.fromEnv(Env env)
Reads APP_* variables with Laravel-compatible defaults.
factory

Properties

debug → bool
final
env → String
final
hashCode → int
The hash code for this object.
no setterinherited
isLocal → bool
no setter
isProduction → bool
no setter
isTesting → bool
no setter
key → String
Top-level key of the section, e.g. app or database.
no setteroverride
laravelCompat → int
The Laravel major version whose wire formats the application answers with (COMPAT_LARAVEL_VERSION, 8 to 13, default 12). 10 to 13 share them. 9 uses the older validation messages (The email must be ...); 8 also answers The given data was invalid. for every 422, an empty 404 message and ... not supported for this route. for a 405.
final
locale → String
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timezone → String
final
url → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Plain-map projection used for dot-notation access.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parseLaravelCompat(String? value) → int
Parses COMPAT_LARAVEL_VERSION: a major version (8), optionally as 8.x or a full version (8.83.27).

Constants

defaultLaravelCompat → const int
The default of laravelCompat: the Laravel the conformance suite pins.