1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Typed configuration sections, read from the environment.
//!
//! Your application needs different settings on your machine and in production. For example,
//! you might use the memory cache locally and Redis on the server. [`Config`] holds every
//! setting as a typed field, with one section per subsystem, so a misspelled setting doesn't
//! compile. Read the configuration from anywhere in the application with [`config()`].
//!
//! Each section's `from_env` constructor starts from the section's [`Default`] and overrides the
//! fields whose environment variables are set in the [`Env`]. To change a section in code, write
//! a config file. A config file is a function marked [`#[config::section]`](macro@section) that
//! returns the section:
//!
//! ```
//! use laravel::config::session::{Driver, Session};
//! use laravel::config::{self, Env};
//!
//! #[config::section]
//! fn session(env: &Env) -> Session {
//! Session {
//! driver: env.get("SESSION_DRIVER").unwrap_or(Driver::File),
//! ..Session::from_env(env)
//! }
//! }
//! ```
//!
//! Your application's own sections, such as the credentials of third-party services, are types
//! that derive [`Section`](derive@Section). Read them with [`Config::section`], or take a
//! [`struct@Section`] argument in a handler.
//!
//! When a variable is set to a value that doesn't parse, the field keeps its default and the
//! application refuses to start. The startup error lists every invalid variable at once. To learn
//! more, check out the [configuration guide](https://github.com/laravel/rust-framework/blob/0.x/docs/configuration.md).
pub use database;
pub use inertia;
pub use opentelemetry;
pub use *;
pub use ;
pub use ;
pub use config as search;