Override folder app
, config
, and platform
from the latest version.
For developers:
composer.json
and composer.lock
from new source code./vendor
then run composer install
to upgrade vendor packages.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
public/themes
and run command php artisan cms:theme:assets:publish
php artisan vendor:publish --tag=cms-lang --force
to update translations.php artisan optimize:clear
to clear cache.For non-developers:
public/themes
, public/vendor
, bootstrap
, vendor
from the latest version.storage/framework/views
and storage/framework/cache
.Import group
to update translations.Go to Admin -> Plugins and activate plugin RSS Feed.
Override folder app
, config
, and platform
from the latest version.
For developers:
composer.json
and composer.lock
from new source code./vendor
then run composer install
to upgrade vendor packages.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
public/themes
and run command php artisan cms:theme:assets:publish
php artisan vendor:publish --tag=cms-lang --force
to update translations.php artisan optimize:clear
to clear cache.For non-developers:
public/themes
, public/vendor
, bootstrap
, vendor
from the latest version.storage/framework/views
and storage/framework/cache
.Import group
to update translations.Important changes:
getIndex()
and getView()
in platform/themes/lara-mag/src/Http/Controllers/LaraMagController.php
.Override folder app
, config
, and platform
from the latest version.
For developers:
composer.json
and composer.lock
from new source code./vendor
then run composer install
to upgrade vendor packages.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
public/themes
and run command php artisan cms:theme:assets:publish
php artisan vendor:publish --tag=cms-lang --force
to update translations.php artisan optimize:clear
to clear cache.For non-developers:
public/themes
, public/vendor
, bootstrap
, vendor
from the latest version.storage/framework/views
and storage/framework/cache
.Import group
to update translations.Override folder app
, config
, and platform
from the latest version.
For developers:
composer.json
and composer.lock
from new source code./vendor
then run composer install
to upgrade vendor packages.public/vendor
and run command php artisan vendor:publish --tag=cms-public --force
public/themes
and run command php artisan cms:theme:assets:publish
php artisan vendor:publish --tag=cms-lang --force
to update translations.php artisan optimize:clear
to clear cache.For non-developers:
public/themes
, public/vendor
, bootstrap
, vendor
from the latest version.storage/framework/views
and storage/framework/cache
.Import group
to update translations.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.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).Replace all config('media.
to config('core.media.media.
Replace all trans('media::
to trans('core/media::
Replace all views('media::
to view('core/media::
Replace all @include('media::
to @include('core/media::
Replace all @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);
Update in your plugin's controllers, remove screen name from BeforeEditContentEvent
:
Change
event(new BeforeEditContentEvent({PLUGIN}_MODULE_SCREEN_NAME, $request, $data));
To
event(new BeforeEditContentEvent($request, $data));
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', ...
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.core/base/resources/views/layouts/master.blade.php
& core/table/src/Abstracts/TableAbstract.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 v1.1 will not work on v2.0.
composer install
to update vendor packages.php artisan migrate
to update database.