app
, config
, platform
, resources/lang
from the update source code.composer.json
and composer.lock
from the update source code.vendor
then run composer install
to re-install vendor packagesphp artisan migrate
to update database.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
app
, config
, platform
, resources/lang
from the update source code.composer.json
and composer.lock
from the update source code.vendor
then run composer install
to re-install vendor packagesphp artisan migrate
to update database.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
app
, config
, platform
, resources/lang
from the update source code.composer.json
and composer.lock
from the update source code.vendor
then run composer install
to re-install vendor packagesphp artisan migrate
to update database.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
app
, config
, platform
, resources/lang
from the update source code.composer.json
and composer.lock
from the update source code.composer install
to install vendor packagesphp artisan migrate
to update database.php artisan cms:plugin:activate translation
to activate plugin Translation.php artisan cms:translations:import
to update database.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
app
, config
, platform
from the update source code.composer.json
and composer.lock
from the update source code.composer install
to install vendor packagesphp artisan migrate
to update database.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
app
, platform
from the update source code.composer.json
and composer.lock
from the update source code.composer install
to install vendor packagesphp artisan migrate
to update database.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
app
, platform
from the update source code.composer.json
and composer.lock
from the update source code.composer install
to install vendor packagesphp artisan migrate
to update database.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
app
, platform
from the update source code.composer.json
and composer.lock
from the update source code.composer install
to install vendor packagesphp artisan migrate
to update database.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
setModuleName()
in your plugins (if you have).Override folder app
, platform
from the update source code.
Override file composer.json
and composer.lock
from the update source code.
If you're using config, trans or views of media module in your plugins/theme, please do bellow step in your plugins/theme
config('media.
to config('core.media.media.
trans('media::
to trans('core/media::
views('media::
to view('core/media::
@include('media::
to @include('core/media::
@extends('media::
to @extends('core/media::
Change the way to register media sizes if you add your custom image sizes:
Ex:
\RvMedia::addSize('featured', 560, 380);
composer install
to install vendor packagesphp artisan migrate
to update database.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
composer install
to install vendor packagesphp artisan migrate
to update database..env
: FILESYSTEM_DRIVER=public
/storage
from image URL in your database. Ex: change /storage/uploads/abc.jpg
to uploads/abc.jpg
// Before
function get_meta_data($object->id, $key, $screen, $single = false, $select = ['meta_value'])
// Now function get_meta_data($object, $key, $single = false, $select = ['meta_value'])
- Add setupModel method into your plugin forms. Ex: platform/plugins/blog/src/Forms/PostForm.php:54
```php
$this->setupModel(new Post);
Language::registerModule({PLUGIN}_MODULE_SCREEN_NAME);
to Language::registerModule(\Botble\{Plugin}\Models\{Plugin}::class)
SeoHelper::registerModule({PLUGIN}_MODULE_SCREEN_NAME);
to SeoHelper::registerModule(\Botble\{Plugin}\Models\{Plugin}::class)
config([
'packages.slug.general.supported' => array_merge(config('packages.slug.general.supported'), [{PLUGIN}_MODULE_SCREEN_NAME]),
]);
to
SlugHelper::registerModule(\Botble\{Plugin}\Models\{Plugin}::class);
Update your plugin's tables:
Change apply_filters(BASE_FILTER_GET_LIST_DATA, $data, {PLUGIN}_MODULE_SCREEN_NAME)
to apply_filters(BASE_FILTER_GET_LIST_DATA, $data, $this->repository->getModel())
Change
$this->applyScopes(apply_filters(BASE_FILTER_TABLE_QUERY, $query, $model, {PLUGIN}_MODULE_SCREEN_NAME));
to
$this->applyScopes(apply_filters(BASE_FILTER_TABLE_QUERY, $query, $model));
Change
apply_filters(BASE_FILTER_TABLE_BUTTONS, $buttons, {PLUGIN}_MODULE_SCREEN_NAME);
to
apply_filters(BASE_FILTER_TABLE_BUTTONS, $buttons, Post::class);
platform
from the update source code.composer update
to update vendor packages.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
platform
from the update source code.composer update
to update vendor packages.php artisan migrate
to update database.public.index
to public.single
.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
GET
to DELETE
(http://prntscr.com/ohvrw0) so if you have custom plugins, you need to change all of it to DELETE
in your plugin /routes/web.phpRoute::get('delete/{id}', ...
To
Route::delete('delete/{id}', ...
And,
Route::post('delete-many', ...
To
Route::delete('delete-many', ...
BeforeEditContentEvent
:
Changeevent(new BeforeEditContentEvent({PLUGIN}_MODULE_SCREEN_NAME, $request, $data));
To
event(new BeforeEditContentEvent($request, $data));
platform
from the update source code.public/vendor/core
and run command php artisan vendor:publish --tag=cms-public --force
composer install
to update vendor packages.php artisan migrate
to update database.status
column from publish
to published
.You need to copy your changes to new source code.
From this version, all core modules, plugins and themes are located in /platform folder.
php artisan cms:theme:assets:publish your-theme
to copy theme's assets to public/themes/your-theme
Run composer install
and php artisan migrate
Run command php artisan storage:link
core/base
with new source code.This is big version. It has many change on core system so the easiest way to upgrade to new version is copy what your changes (your themes, plugins, translations) to new source code.
Run php artisan migrate
, php artisan vendor:publish --tag=public --force
Run composer update
to update vendor packages.
core/base/resources/views/layouts/master.blade.php
, core/table/src/Abstracts/TableAbstract.php
& plugins/block/src/Repositories/Eloquent/BlockRepository.php
php artisan vendor:publish --tag=public --force
php artisan vendor:publish --tag=lang --force
composer install
to update vendor packages.php artisan migrate
to update database.composer install
to update vendor packages.php artisan migrate
to update database.composer install
to update vendor packages.php artisan migrate
to update database.{warning} Old custom plugins which you built with Botble CMS v2.6 will not work on v3.0.
composer install
to update vendor packages.php artisan migrate
to update database.composer install
to update vendor packages.php artisan plugin:activate member
public.single.detail
change to public.single
.{warning} You should not upgrade to version 2.3 if your project is stable now. Because it has a lot of change so it can break your site.
Override folder /core
and /plugins
from new version.
Replace public/vendor
folder or run php artisan vendor:publish --tag=assets
Check and update manually 3 files: composer.json
, gulpfile.js
, .env
Because we created new media management and changed database so you have to re-upload all your files.
Replace get_file_by_size()
by get_image_url()
Remove admin bar configuration in your theme
class="{{ admin_bar_class() }}"
{!! admin_bar() !!}
Remove admin breadcrumb in your plugin if it is exists.
{!! Breadcrumbs::render('pageTitle', trans('download::category.create'), Route::currentRouteName()) !!}
<div class="clearfix"></div>
Remove this line on /config/app.php
Lord\Laroute\LarouteServiceProvider::class,
Remove laroute on composer.json
"lord/laroute": "~2.4",
There are many changes on gulpfile.js
so if you don't change anything on this file. Please replace it with new gulpfile.js
.
Then, if you are using Linux
or OSX
, you can use upgrade.sh
to continue upgrade to version 2.2.
$ sudo chmod -R 777 upgrade.sh
$ ./upgrade.sh
Upgrade script for Windows OS will be update soon. From now, you can follow upgrade.sh
content to upgrade your source code.
{warning} This version using Laravel Framework 5.4 so if you are working on Laravel 5.3, please override all default files and folders of Laravel version 5.4 before upgrade.
Override folder /core
and /plugins
from new version.
Replace public/vendor
folder.