Use Sidebar LHS to navigate
For global help click here

FetchGenieFeed.php

<?php
namespace Soulfresh\Console\Commands;

use Illuminate\Console\Command;
use Soulfresh\Services\GenieService;

/**
 * Class FetchGoogleCalendar
 * @package Soulfresh\Console\Commands
 */
class FetchGenieFeed extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'genie:fetch  {--L|local}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Fetch the latest data from the Saasplications server';

    /**
     * @var GenieService
     */
    private $genieService;

    /**
     * Create a new command instance.
     *
     * @param GenieService $genieService
     */
    public function __construct(GenieService $genieService)
    {
        parent::__construct();
        $this->genieService = $genieService;
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        // https://github.com/spatie/laravel-google-calendar
        if ($this->option('local')) {
            $this->genieService->localRefresh();
        } else {
            dd($this->genieService->refresh());
        }
    }
}


For information about SaaSplications go to http://saasplications.com.au