bagisto / bagisto-reward-points

The Laravel eCommerce Reward Points module allows the admin to reward its customers with points
https://bit.ly/3zUlsgr
MIT License
6 stars 6 forks source link
ecommerce laravel opensource reward-points

Introduction

Bagisto Reward System allows the admin to create reward at the back-end. It packs in lots of demanding features that allows your business to scale in no time:

Requirements:

Installation :

php artisan migrate
php artisan route:cache
php artisan config:cache
php artisan vendor:publish --force

-> Press the number before RewardsServiceProvider and then press enter to publish all assets and configurations.

now execute the project on you

Commands For DOB and Expire Check:

<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        \Webkul\Rewards\Console\Commands\CheckRewardExpire::class,
        \Webkul\Rewards\Console\Commands\RewardByDateOfBirth::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('booking:cron')->dailyAt('3:00');
        $schedule->command('dob:cron')->daily();
        $schedule->command('reward:expire')->daily();
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');
        $this->load(__DIR__.'/../../packages/Webkul/Core/src/Console/Commands');
        $this->load(__DIR__.'/../../packages/Webkul/Rewards/src/Console/Commands');

        require base_path('routes/console.php');
    }
}