Before deploying the CtrlPanel.GG Coin Earning System to your production server, it’s wise to download all the necessary files from this repository to your local computer. This will allow you to configure and customize the system as needed before going live. Follow these steps to get started:
-
Open your terminal or command prompt.
-
Navigate to the directory where you want to store the system files on your local computer using the
cd
command. -
Clone the repository by running the following command:
git clone https://github.com/aroniktv/coin-earning-ctrlpanel.git
-
Open up the EarnController.php which can be found in /app/Http/Controllers.
-
Change
$dailyLimit
to the amount of daily how much link generate per user. -
Change
$timezone
to what your timezone, you can find your timezone from https://en.wikipedia.org/wiki/Time_zone -
Replace
https://my.domain.example
by the Domain of your CtrlPanel. !!!Do NOT ADD A / !!! -
Replace
yourid
with your Linkvertise Publisher ID which you can find in the Full Script API Section. -
Change the Variable
$reward
to the Amount of Coins you want to give a user for an ads session. The default is 30.($reward = 30;)
-
Save the File.
-
Open up the EarnController.php which can be found in /app/Http/Controllers.
-
Change the Variable
$reward_a
to the Amount of Coins you want to give a user for an ads session. The default is 5.($reward_a = 5;)
-
Save the File.
-
Open up the adpage.blade.php which can be found in in /resources/views/earn/.
-
Replace every placeholder “xxxxxxx” with the variables you get from Adsense
-
Save the File.
-
Open up the EarnController.php which can be found in /app/Http/Controllers.
-
Change the Variable
$clickcoinReward
to the Amount of Coins you want to give a user for an click. The default is 1.$clickcoinReward = 1
-
Change the Variable
$minTimeBetweenClicks
to the Amount you want user to wait after each Click. The default is 60.$minTimeBetweenClicks = 60
-
Replace $clickcoinLink = 'your direct ad link'; with your ads direct link.
-
Save the File.
-
Open up the earn.blade.php which can be found in /resources/views/.
-
Change the Domain
https://my.domain.example
to your CtrlPanel Domain. !!!Do NOT ADD A / !!! -
Save the File.
-
Open up the web.php file which can be found in /routes/. (This is in your CtrlPanel Installation)
-
Add this to the Top of the Web.php:
use App\Http\Controllers\EarnController;
-
Add this under the Line
shellRoute::post('/voucher/redeem', [VoucherController::class, 'redeem'])->middleware('throttle:5,1')->name('voucher.redeem');
Route::get('/earn', [EarnController::class, 'index'])->name('earn.index'); Route::get('/earn/lv', [EarnController::class, 'start'])->name('earn.start'); Route::get('/earn/ad', [EarnController::class, 'adsense'])->name('earn.adsense'); Route::get('/earn/clickcoin', [EarnController::class, 'clickcoin'])->name('earn.clickcoin'); Route::view('/adblocker-found', 'adblocker_found')->name('adblocker_found'); Route::get('/earn/adpage', [EarnController::class, 'timerPage'])->name('earn.adpage'); Route::get('/earn/return', [EarnController::class, 'redirectToEarnIndex'])->name('earn.return'); Route::get('/redeem', [EarnController::class, 'redeem'])->name('earn.redeem');
-
Save the File.
-
Upload the other files to the Live CtrlPanel Folder
-
Run this command's in the ctrlpanel directory.
cd /var/www/controlpanel && php artisan view:clear && php artisan config:clear && chown -R www-data:www-data /var/www/controlpanel/*