|
2 | 2 | from pathlib import Path
|
3 | 3 | from dotenv import load_dotenv
|
4 | 4 |
|
5 |
| -base_path = Path('.') # Fully qualified path to the project root |
6 |
| -env_path = base_path / '.env' # Fully qualified path to the enviroment file |
7 |
| -app_path = base_path.joinpath('app') # The fully qualified path to the app folder |
8 |
| -public_path = base_path.joinpath('public') # The fully qualified path to the public folder |
9 |
| -storage_path = base_path.joinpath('storage') # The fully qualified path to the storage folder |
| 5 | +base_path = Path(".") # Fully qualified path to the project root |
| 6 | +env_path = base_path / ".env" # Fully qualified path to the enviroment file |
| 7 | +app_path = base_path.joinpath("app") # The fully qualified path to the app folder |
| 8 | +public_path = base_path.joinpath( |
| 9 | + "public" |
| 10 | +) # The fully qualified path to the public folder |
| 11 | +storage_path = base_path.joinpath( |
| 12 | + "storage" |
| 13 | +) # The fully qualified path to the storage folder |
10 | 14 |
|
11 | 15 | load_dotenv(dotenv_path=env_path)
|
12 | 16 |
|
|
18 | 22 | # This value is the name of your application. This value is used when the
|
19 | 23 | # framework needs to place the application's name in a notification or
|
20 | 24 | # any other location as required by the application or its packages.
|
21 |
| - 'name': getenv('APP_NAME', None), |
22 |
| - |
| 25 | + "name": getenv("APP_NAME", None), |
23 | 26 | # --------------------------------------------------------------------------
|
24 | 27 | # Application Environment
|
25 | 28 | # --------------------------------------------------------------------------
|
26 | 29 | #
|
27 | 30 | # This value determines the "environment" your application is currently
|
28 | 31 | # running in. This may determine how you prefer to configure various
|
29 | 32 | # services the application utilizes. Set this in your ".env" file.
|
30 |
| - 'env': getenv('APP_ENV', 'production'), |
31 |
| - |
| 33 | + "env": getenv("APP_ENV", "production"), |
32 | 34 | # --------------------------------------------------------------------------
|
33 | 35 | # Application URL
|
34 | 36 | # --------------------------------------------------------------------------
|
35 | 37 | #
|
36 | 38 | # This URL is used by the console to properly generate URLs when using
|
37 | 39 | # the Artisan command line tool. You should set this to the root of
|
38 | 40 | # your application so that it is used when running Artisan tasks.
|
39 |
| - 'url': getenv('APP_URL', 'http://localhost'), |
40 |
| - |
| 41 | + "url": getenv("APP_URL", "http://localhost"), |
41 | 42 | # --------------------------------------------------------------------------
|
42 | 43 | # Application Debug Mode
|
43 | 44 | # --------------------------------------------------------------------------
|
44 | 45 | #
|
45 | 46 | # When your application is in debug mode, detailed error messages with
|
46 | 47 | # stack traces will be shown on every error that occurs within your
|
47 | 48 | # application. If disabled, a simple generic error page is shown.
|
48 |
| - 'debug': getenv('APP_DEBUG', False), |
49 |
| - |
| 49 | + "debug": getenv("APP_DEBUG", False), |
50 | 50 | # --------------------------------------------------------------------------
|
51 | 51 | # Encryption Key
|
52 | 52 | # --------------------------------------------------------------------------
|
53 | 53 | #
|
54 | 54 | # This key is used by the encrypter service and should be set
|
55 | 55 | # to a random, 32 character string, otherwise these encrypted strings
|
56 | 56 | # will not be safe. Please do this before deploying an application!
|
57 |
| - 'key': getenv('APP_KEY', None), |
58 |
| - |
| 57 | + "key": getenv("APP_KEY", None), |
59 | 58 | # --------------------------------------------------------------------------
|
60 | 59 | # Cross-Origin Resource Sharing (CORS)
|
61 | 60 | # --------------------------------------------------------------------------
|
62 | 61 | #
|
63 | 62 | # The origin, or list of origins to allow requests from. The origin(s) may be
|
64 | 63 | # regular expressions, case-sensitive strings, or else an asterisk
|
65 |
| - 'origins': getenv('CORS_DOMAINS', '*') |
| 64 | + "origins": getenv("CORS_DOMAINS", "*"), |
66 | 65 | }
|
0 commit comments