remove App from namespace of packages,(you can use this regex, LaravelEnso\\(.*)\\App\\ replace with LaravelEnso\\$1\\)
3.1. you need to replace laravel-enso/(.*)/src/App/ with laravel-enso/$1/src/ too
you need to add AuthorizationCookie and EnsureFrontendRequestsAreStateful to middleware(like this)
if you didn't bind Core/User to local user you need to add this too AppServiceProvider (like this )
you need to replace web middleware with api in RouteServiceProvider.php and in your local routes (like this)
you need to replace defaults.guard to api and api.driver with sanctum (like this)
CompanyStatuses was replaced with Statuses
you need to adds type to migration fields(like this)
maybe you need to fix routes in imports and static files (like this) (you can use this for find laravel-enso/.*/src/database)
upgrade dependencies to the next major version (for example "@enso-ui/ui": "^3.0") except (clipboard, confirmation, datepicker, directives, divider, dropdown-indicator, enums, erd, laravel-validation, money, progress-bar, progress-circle, route-mapper, strings, switch, tabs, textarea, themes, transitions, wysiwyg, uploader)
remove App from namespace of packages,(you can use this regex, LaravelEnso\\(.*)\\App\\ replace with LaravelEnso\\$1\\)
how-to, activity-log, tutorials were removed from the enso-ui/ui, therefore if you need to use them you need install too and also you need to setup them(you can look at .eslintrc.js, app.js, vue.config.js, router.js)
companies doesn't have documetns, comments, discussion anymore, if you still need them you can use patch(like this)
toastr was changed in this version, and you need to inject it wherever you need(like this )
modal was changed and :show was removed, you need to use v-if instead of :show (like this and this)
upgrades steps Backend:
SANCTUM_STATEFUL_DOMAINS
to .env (like this)LaravelEnso\\(.*)\\App\\
replace withLaravelEnso\\$1\\
) 3.1. you need to replacelaravel-enso/(.*)/src/App/
withlaravel-enso/$1/src/
tooAuthorizationCookie
andEnsureFrontendRequestsAreStateful
to middleware(like this)AppServiceProvider
(like this )web
middleware withapi
inRouteServiceProvider.php
and in your local routes (like this)api
and api.driver withsanctum
(like this)CompanyStatuses
was replaced withStatuses
laravel-enso/.*/src/database
)php artisan vendor:publish --tag=sanctum-config
php artisan vendor:publish --tag=control-panel-api-seeder
Broadcast::routes(['middleware' => ['auth:sanctum']]);
toroutes/api.php
(like this)use LaravelEnso\Helpers\Classes\
withuse LaravelEnso\Helpers\Services\
companies
doesn't havedocuments
,comments
,discussion
anymore, if you still need them you need to install them and usingDynamicMethod
(like dynamic-methods, AppServiceProvider.php, composer.json)composer update
upgrades steps FrontEnd:
"@enso-ui/ui": "^3.0"
) except (clipboard
,confirmation
,datepicker
,directives
,divider
,dropdown-indicator
,enums
,erd
,laravel-validation
,money
,progress-bar
,progress-circle
,route-mapper
,strings
,switch
,tabs
,textarea
,themes
,transitions
,wysiwyg
,uploader
)LaravelEnso\\(.*)\\App\\
replace withLaravelEnso\\$1\\
)how-to
,activity-log
,tutorials
were removed from theenso-ui/ui
, therefore if you need to use them you need install too and also you need to setup them(you can look at .eslintrc.js, app.js, vue.config.js, router.js)companies
doesn't havedocumetns
,comments
,discussion
anymore, if you still need them you can use patch(like this)4.0.0
yarn
,yarn upgrade