Description
What were you trying to do?
I am building my app for production but the files listed in the cleanup_exclude_files
config are not getting removed.
What happened?
The files are not removed when the app is built for production
How to reproduce the bug
Create a new app, make sure there is a laravel.log
file in storage/logs
. If not create one.
Build the application and install / run it. If on Mac, check in the application support folder and the laravel.log
file will still be present.
Package Versions
{
"installed": [
{
"name": "nativephp/electron",
"direct-dependency": true,
"homepage": "https://github.com/nativephp/electron",
"source": "https://github.com/NativePHP/electron/tree/0.9.0",
"version": "0.9.0",
"description": "Electron wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/laravel",
"direct-dependency": false,
"homepage": "https://github.com/nativephp/laravel",
"source": "https://github.com/NativePHP/laravel/tree/0.7.0",
"version": "0.7.0",
"description": "Laravel wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/php-bin",
"direct-dependency": false,
"homepage": "https://nativephp.com",
"source": "https://github.com/NativePHP/php-bin/tree/0.5.6",
"version": "0.5.6",
"description": "PHP binaries used by the NativePHP framework",
"abandoned": false
}
]
}
PHP Version
8.4
Laravel Version
11
Node Version
23.5
Which operating systems have you seen this occur on?
No response
OS version
Macos 15.1
Notes
I am using the log file as an example as its in the cleanup array by default however my specific issue is that I have an auth-token.txt file that gets generated when a user logs in and it stores the auth token. This file is not getting removed when I build the application and on investigation I have noticed none of the files specified are getting removed.