Skip to content

Instantly share code, notes, and snippets.

View nunomaduro's full-sized avatar

nuno maduro nunomaduro

View GitHub Profile
<?php
namespace App\Commands;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
use Illuminate\Support\Facades\Storage;
class BackupCommand extends Command
{
@nunomaduro
nunomaduro / LaravelConsoleTaskServiceProvider.php
Created December 16, 2017 20:01
LaravelConsoleTaskServiceProvider.php
<?php
declare(strict_types=1);
/**
* This file is part of Laravel Console Task.
*
* (c) Nuno Maduro <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
@nunomaduro
nunomaduro / laravel-console-task.php
Created December 15, 2017 18:32
Laravel Console Task usage example
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class LaravelInstallCommand extends Command
{
/**
* Execute the console command.