Introduction :
This package is for updating your Laravel project via view without doing any command in the prompt, this package may be useful when you sell your project to multiple people as they will update without any intervention from you via a simple destination
How it works :
When you do any "Release and TAG " a new update will appear
Install :
Run this command for install :
composer require salahhusa9/updater
For edit config file or view :
php artisan vendor:publish
Start and Test:
-
Clone You private repo used ssh , Because it not asks to enter the password when "git pull" is Running ,Or any other way that respects this
-
Create a first version in github Tag : 1.0.0
-
Env :
SELF_UPDATER_VERSION_INSTALLED=1.0.0 SELF_UPDATER_GITHUB_PRIVATE_ACCESS_TOKEN="YOUR_GITHUB_PRIVATE_ACCESS_TOKEN" SELF_UPDATER_REPO_VENDOR="YOUR_GITHUB_USERNAME" SELF_UPDATER_REPO_NAME="YOUR_GITHUB_REPO_NAME"
-
If You need to update :
SELF_UPDATER_DATABASE_TYPE=sql SELF_UPDATER_SQL_PATH="YOUR_PATH_SQL_FILE"
ex :
SELF_UPDATER_SQL_PATH="database/sql"
For sql file name it : version.sql ,ex : 1.0.0.sql
-
Test If all work : Run
php artisan updater:check-for-update
Response :
There's no new version available.
How to use :
Enter to : youdomain/update
Config :
This for Maintenance Mode : true / false / manual ,if need to activate or deactivate it in update
'maintenance-mode' => 'manual',