File tree Expand file tree Collapse file tree 3 files changed +44
-3
lines changed Expand file tree Collapse file tree 3 files changed +44
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
return [
4
+ /**
5
+ * An internal flag to indicate if the app is running in the NativePHP
6
+ * environment. This is used to determine if the app should use the
7
+ * NativePHP database and storage paths.
8
+ */
4
9
'running ' => env ('NATIVEPHP_RUNNING ' , false ),
5
10
11
+ /**
12
+ * The path to the NativePHP storage directory. This is used to store
13
+ * uploaded files and other data.
14
+ */
6
15
'storage_path ' => env ('NATIVEPHP_STORAGE_PATH ' ),
7
16
17
+ /**
18
+ * The path to the NativePHP database directory. This is used to store
19
+ * the SQLite database file.
20
+ */
8
21
'database_path ' => env ('NATIVEPHP_DATABASE_PATH ' ),
9
22
23
+ /**
24
+ * The secret key used to communicate with the NativePHP API.
25
+ */
10
26
'secret ' => env ('NATIVEPHP_SECRET ' ),
27
+
28
+ /**
29
+ * The URL to the NativePHP API.
30
+ */
31
+ 'api_url ' => env ('NATIVEPHP_API_URL ' , 'http://localhost:4000/api/ ' ),
11
32
];
Original file line number Diff line number Diff line change 8
8
*/
9
9
'version ' => env ('NATIVEPHP_APP_VERSION ' , '1.0.0 ' ),
10
10
11
+ /**
12
+ * The ID of your application. This should be a unique identifier
13
+ * usually in the form of a reverse domain name.
14
+ * For example: com.nativephp.app
15
+ */
11
16
'app_id ' => env ('NATIVEPHP_APP_ID ' ),
12
17
18
+ /**
19
+ * If your application allows deep linking, you can specify the scheme
20
+ * to use here. This is the scheme that will be used to open your
21
+ * application from within other applications.
22
+ * For example: "nativephp"
23
+ *
24
+ * This would allow you to open your application using a URL like:
25
+ * nativephp://some/path
26
+ */
13
27
'deeplink_scheme ' => env ('NATIVEPHP_DEEPLINK_SCHEME ' ),
14
28
29
+ /**
30
+ * The author of your application.
31
+ */
15
32
'author ' => env ('NATIVEPHP_APP_AUTHOR ' ),
16
33
17
- 'api_url ' => env ('NATIVEPHP_API_URL ' , 'http://localhost:4000/api/ ' ),
18
-
34
+ /**
35
+ * The default service provider for your application. This provider
36
+ * takes care of bootstrapping your application and configuring
37
+ * any global hotkeys, menus, windows, etc.
38
+ */
19
39
'provider ' => \App \Providers \NativeAppServiceProvider::class,
20
40
];
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Client
13
13
public function __construct ()
14
14
{
15
15
$ this ->client = Http::asJson ()
16
- ->baseUrl (config ('nativephp.api_url ' , '' ))
16
+ ->baseUrl (config ('nativephp-internal .api_url ' , '' ))
17
17
->timeout (60 * 60 )
18
18
->withHeaders ([
19
19
'X-NativePHP-Secret ' => config ('nativephp-internal.secret ' ),
You can’t perform that action at this time.
0 commit comments