You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the PHP process which runs your application operates with the same privileges as the logged-in user, this
@@ -91,5 +92,53 @@ However, in a NativePHP app, this approach is less applicable. The entire applic
91
92
92
93
We recommend avoiding symlinks within your NativePHP app. Instead, consider either:
93
94
94
-
- Placing files directly in their intended locations
95
-
- Using Laravel's Storage facade to mount directories outside your application
95
+
- Placing files directly in their intended locations
96
+
- Using Laravel's Storage facade to mount directories outside your application
97
+
98
+
## Bundling Application Resources
99
+
100
+
NativePHP allows you to bundle additional files with your application that can be accessed at runtime. This is useful for including pre-compiled executables or other resources that need to be distributed with your app.
101
+
102
+
### Adding Files
103
+
104
+
To include extra files with your application, place them in the `public/extras/` directory at the root of your Laravel project:
105
+
106
+
```
107
+
your-project/
108
+
├── public/
109
+
│ └── extras/
110
+
│ ├── my-tool.sh
111
+
│ ├── my-tool.exe
112
+
│ └── sample.csv
113
+
├── app/
114
+
└── ...
115
+
```
116
+
117
+
These files will be automatically bundled with your application during the build process.
118
+
119
+
The `extras` disk is read-only. Any files you write to this directory will be overwritten when your application is updated.
120
+
121
+
### Accessing Files
122
+
123
+
You can access bundled extra files using Laravel's Storage facade with the `extras` disk:
0 commit comments