Latest version
Upgrading To 1.4.0 From 1.3.0
1. Clear cache
-
Delete
framework
folder fromstorage
folder.
2. Update files
-
Extract
upgrade_from_1.3.0.zip
file into your web server's root directory, and choose to replace old files with the new ones.
Upgrading To 1.3.0 From 1.2.0
1. Clear cache
-
Delete
framework
folder fromstorage
folder. -
Delete
build
folder frompublic
folder.
2. Update files
-
Extract
upgrade_from_1.2.0.zip
file into your web server's root directory, and choose to replace old files with the new ones. -
Add a new line contains
APP_TIMEZONE=Africa/Cairo
in your environment.env
files, then replaceAfrica/Cairo
with your timezone. List of Supported Timezones -
Replace
https://domain.com/sitemap.xml
with your domain inrobots.txt
file located inpublic
folder.
3. Update database
We recommend you to take a backup of your data before editing the database.
-
In
posts
table.-
Set
keywords
column to nullable and set the default value toNULL
. -
Remove
time_to_read
column.
-
Set
Upgrading To 1.2.0 From 1.1.0
1. Clear cache
-
Delete
framework
folder fromstorage
folder. -
Delete
build
folder frompublic
folder.
2. Update files
-
Extract
upgrade_from_1.1.0.zip
file into your web server's root directory, and choose to replace old files with the new ones.
3. Update database
We recommend you to take a backup of your data before editing the database.
-
Add 3 columns to
config
table.-
hero_section_layout
column of typeint(11)
and with default value2
. -
hero_section_background
column of typevarchar(255)
and set null toTRUE
. -
hero_section_description
column of typevarchar(255)
and set null toTRUE
.
-
Upgrading To 1.1.0 From 1.0.0
We recommend that you take a backup of your data before updating database, then import the backup data into the database again.
# Updating Dependencies
Laravel 10 requires PHP 8.1.0 or greater.
# Files that need to be replaced
-
app/Console/Kernel.php
-
app/Http/Controllers/CategoryController.php
-
app/Http/Controllers/Settings/AnalyticsController.php
-
app/Http/Kernel.php
-
app/Models/Category.php
-
app/Providers/AuthServiceProvider.php
-
app/View/Components/Sidebar.php
-
composer.json
-
composer.lock
-
database/migrations/2022_10_06_184746_create_categories_table.php
-
database/migrations/2022_10_17_144701_create_comments_table.php
-
phpunit.xml
-
resources/views/categories/create.blade.php
-
resources/views/categories/edit.blade.php
-
resources/views/categories/index.blade.php
# Folders that need to be replaced
-
node_modules
-
vendor
# Database tables
-
categories
table
# Rename files
-
Rename
userHasRoles.php
toUserHasRoles.php
located inapp/Http/Middleware
folder. -
Rename
navbar.php
toNavbar.php
located inapp/View/Components
folder. -
Rename
comments.php
toComments.php
located inapp/View/Components
folder.
# Clear cache
This step is important when you upgrade from version to another. You must clear the cache because it contains files from the old version and thus increases the possibility of error messages appearing.
-
Using command
-
Run
php artisan view:clear
command. -
Run
php artisan cache:clear
command.
-
Run
-
Clear cache manually
-
Delete
framework
folder fromstorage
folder. -
Put
framework
folder again intostorage
folder, but from the new update files.
-
Delete