Skip to content

Commit 713b3c1

Browse files
authored
Merge pull request #448 from robert-drobota/master
Enso 8 - correction on upgrade steps #447
2 parents 706fbad + 41e617e commit 713b3c1

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Laravel Enso is now fully compatible with Laravel 12 and includes alignment with
408408

409409
To successfully upgrade to Laravel 12 and this latest version of Enso, follow these steps:
410410

411-
1. **Update Composer dependencies:** Update the Laravel Enso Core version in your `composer.json` file as well as any other relevant package upgrades.
411+
1. **Update Composer dependencies:** Update the Laravel Enso Core version in your [`composer.json`](https://github.com/laravel-enso/enso/blob/master/composer.json) file as well as any other relevant package upgrades.
412412

413413
```bash
414414
"laravel-enso/core": "^11.0",
@@ -425,7 +425,7 @@ To successfully upgrade to Laravel 12 and this latest version of Enso, follow th
425425
4. **Run pre-migration upgrade:** Before migrating your database, ensure you run the upgrade preparation command:
426426

427427
```bash
428-
php artisan upgrade --before-migration
428+
php artisan enso:upgrade --before-migration
429429
```
430430
5. **Run migrations:** Update your database structure using the migration command:
431431

@@ -435,17 +435,23 @@ To successfully upgrade to Laravel 12 and this latest version of Enso, follow th
435435
6. **Run post-migration upgrade:** Complete the BE upgrade process with the final command:
436436

437437
```bash
438-
php artisan upgrade
438+
php artisan enso:upgrade
439439
```
440440

441441
7. **Upgrade FE dependencies:** Complete the FE upgrade process:
442-
- add vue-router to transpile / optimize dependencies in vite.config.js
442+
- add vue-router to transpile / optimize dependencies in [`vue.config.js`](https://github.com/laravel-enso/enso/blob/master/client/vue.config.js)
443443
- update minimatch using resolutions to avoid dependency conflicts
444444

445445
```bash
446446
run `yarn` and `yarn upgrade && yarn` in `/client`
447447
```
448448

449+
8. **Sync configs**: Be sure to update your `.env` file with any new or updated config keys, and also update your config files if necessary:
450+
- update Enso's `'version' => '8.0.0',` in `config/enso/config.php` (see [config.php](https://github.com/laravel-enso/enso/blob/master/config/enso/config.php))
451+
- check [config](https://github.com/laravel-enso/enso/tree/master/config) for any new/missing config files or keys
452+
- check [.env.example](https://github.com/laravel-enso/enso/blob/master/.env.example) for any new/missing configs
453+
454+
449455
## 7.0.0
450456

451457
This release focuses on aligning Laravel Enso with the latest Laravel version (v11), bringing significant updates and improvements. We highly recommend upgrading your base application structure to match the Laravel 11 structure to ensure full compatibility and take advantage of new features.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "laravel-enso/enso",
33
"type": "project",
4-
"description": "Laravel Enso can be a solid start for any SPA based on Laravel 10.x, Vue and Bulma",
4+
"description": "Laravel Enso can be a solid start for any SPA based on Laravel 12.x, Vue and Bulma",
55
"keywords": [
66
"framework",
77
"laravel"
@@ -94,4 +94,4 @@
9494
"php artisan enso:upgrade:status"
9595
]
9696
}
97-
}
97+
}

config/enso/addresses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
return [
44
'onDelete' => 'cascade',
5-
'defaultCountryId' => 184,
5+
'defaultCountryId' => (int) env('DEFAULT_COUNTRY_ID', 1),
66
];

0 commit comments

Comments
 (0)