# Upgrade Guide
# Upgrade Steps
To upgrade your current version to the latest version of Bagisto, follow these steps:
Download the latest version of Bagisto from one of the following links:
Extract the downloaded Bagisto zip file to the desired deployment location.
Open the terminal and navigate to the root folder of the extracted Bagisto folder.
Run the following command in the terminal:
composer create-project
This command will install the necessary dependencies for the latest version of Bagisto.
Open the
.env
file in your project's root folder. Provide the database credentials of your old project, which you want to upgrade using Bagisto.Run one of the following commands to cache the new changes:
php artisan optimize # -- OR -- php artisan config:cache
These commands will cache the configuration files and optimize the project.
Now, your project is ready to run the migration command. Execute the following command in the terminal:
php artisan migrate
WARNING
Be cautious when using the seeder command as it may reset settings and categories. Add default settings manually if necessary.
Create a symbolic link to link public assets to the storage folder by running the following command:
php artisan storage:link
Copy the contents of the previous version's folder (e.g.,
old-project/storage/app/public
) to the corresponding folder in the latest version (e.g.,new-project/storage/app/public
).TIP
If your existing project depends on local storage, has changed paths, or requires previous logs, ensure to include those as well.
Once the copying is complete, publish the new files by running the following command:
php artisan vendor:publish --all
WARNING
Avoid using the
--force
flag, as it will reset all your views. Only use it if you understand the consequences.Congratulations! Your project is now upgraded to the latest version of Bagisto. However, keep in mind that if you have made significant customizations, ensure compatibility with the latest version.
# New Changes
The following changes have been implemented in Bagisto from version 1.4.5 to 1.5.1:
- Implemented Elasticsearch for improved search functionality.
- Added a count of selected products in Datagrid. (GitHub (opens new window))
- Changed the appearance of checkboxes in dark mode. (GitHub (opens new window))
- Modified routes in Packages. (GitHub (opens new window))
- Removed Triggers feature. (GitHub (opens new window))
- Consistent mail configuration as per Laravel standards. (GitHub (opens new window))
- Removed REST API and JWT package related dependencies. (GitHub (opens new window))