filament/filament
v3.2.98
v11.20.0
v3.5.4
PHP 8.3.11
When I composer install a Filament project in a WIndows environment, the php artisan filament:upgrade
command that runs (set inside composer.json
) republishes assets as expected, but it results in a bunch of versioned file changes of the public assets. In a Mac environment this doesn't happen. You shouldn't have to deal with code changes when just doing a composer install
(think of devex environments like Codespaces). Then if you commit the changes from Windows, the next time a Mac env does a composer install now the assets are all changed again. So the republishing of assets causes this constant change set between different environments Mac vs Windows, which is annoying to deal with especially in the context of PR reviews etc.
When you composer install
for a project that is already setup for Filament, it should not change any files. When you do this from a Mac env there are not any file changes (as expected). When you do this from a Windows env, it's modifying assets which are already published (unexpected). These public assets should only be modified if Filament is actually upgraded to a new release version like in a composer update
.
In a Windows dev environment (either Herd or otherwise):
git clone https://github.com/filamentphp/demo.git
cd demo/
composer install --ignore-platform-reqs
git status
public/js/filament/
https://github.com/filamentphp/demo.git
modified: public/css/filament/forms/forms.css
modified: public/js/filament/filament/app.js
modified: public/js/filament/filament/echo.js
modified: public/js/filament/forms/components/color-picker.js
modified: public/js/filament/forms/components/date-time-picker.js
modified: public/js/filament/forms/components/file-upload.js
modified: public/js/filament/forms/components/key-value.js
modified: public/js/filament/forms/components/markdown-editor.js
modified: public/js/filament/forms/components/rich-editor.js
modified: public/js/filament/forms/components/select.js
modified: public/js/filament/forms/components/tags-input.js
modified: public/js/filament/forms/components/textarea.js
modified: public/js/filament/notifications/notifications.js
modified: public/js/filament/support/async-alpine.js
modified: public/js/filament/support/support.js
modified: public/js/filament/tables/components/table.js
modified: public/js/filament/widgets/components/chart.js
modified: public/js/filament/widgets/components/stats-overview/stat/chart.js
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too