Upgrade Notes (Laravel 9 -> 10 & Backpack 5 -> 6)
Laravel
https://laravel.com/docs/10.x/upgrade
1. Update package version
https://github.com/yayasanvitka/saint/commit/59c1c7eee9ba0ce9ba41702d04a12333d6aa2803
2. Update minimum-stability in composer.json
https://github.com/yayasanvitka/saint/commit/db51d2e49b59fa3d7dd754f4a472f639f2179c4e
3. Update $dates to $casts
https://github.com/yayasanvitka/saint/commit/66622ead9d09e3eee61fb4bbce805cd32762f057
Backpack
https://backpackforlaravel.com/docs/6.x/upgrade-guide
1. Step 3.2
Choose Tabler and No premium addons
Add basset in filesystems.php
The code is
'basset' => [ 'driver' => 'local', 'root' => public_path('storage'), 'url' => env('APP_URL') . '/storage', 'visibility' => 'public', 'throw' => false, ],
2. Skip step 4-7
3. Skip step 9-15
4. Skip step 22
5. Step 25
Choose No to publish public/packages
6. Custom CSS
Put it into mix_styles in ui.php and webpack.mix.js
7. Update layout to vertical & enable useFluidContainers in theme-tabler.php
https://github.com/yayasanvitka/saint/commit/a58ae10287b071a1c3a49ad17103369daf3ecac3
8. Fix layout.blade.php in resource/views/errors
https://github.com/yayasanvitka/saint/commit/d764e1284460ef577179353b9d716ef4a77094aa
9. Temporary fix for multiple nested menu
https://github.com/yayasanvitka/saint/commit/d35ab9edabcc8a1863706cf0fe715e134a226029
10. Re-install elfinder
rm -rf resources/views/vendor/elfinder
php artisan backpack:filemanager:install
11. Re-publish backupmanager and add backup.blade.php
php artisan vendor:publish --provider="Backpack\BackupManager\BackupManagerServiceProvider" --tag=backup-config --tag=lang
https://github.com/yayasanvitka/saint/commit/a176fa99829a075affebd43a64b09463c74ea942
https://github.com/yayasanvitka/hrms/commit/a6ef11cdb04e3f109965ebe028d6477c2e8cd14c
https://github.com/yayasanvitka/hrms/commit/4e701ba893a2cd9e3c5f35baa89b7f13a40e9fdb
12. Fix error gravatar
https://github.com/yayasanvitka/saint/commit/128f9ab3955054d6c950b6544cbb8e9617edb11f
13. Remove unused js code
https://github.com/yayasanvitka/saint/commit/231dadab2edbf92f03f2a16600769375abd8ffdc
14. Fix MyAccountController
https://github.com/yayasanvitka/saint/commit/05b57f1e5a897d562ce6c0b48de367cfb3d55db7
15. Fix reorder menu
https://github.com/yayasanvitka/saint/commit/65ce077aa2f21f2db73268230c16cf307fc8756f
16. Solution for readonly field does not show gray background
Tambah 'class' => 'form-control bg-gray-600'
di dalam attributes
17. Update blank.blade.php
and move to theme-tabler folder
https://github.com/yayasanvitka/saint/commit/2c9114eaea4dc1437aa16743127608e665df747a