Skip to content

Instantly share code, notes, and snippets.

View Wpkenpachi's full-sized avatar
🎯
Focusing

Wesley Paulo Wpkenpachi

🎯
Focusing
View GitHub Profile
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
<?php
namespace App\Http\Controllers;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Jobs\ManageEvents;
class TestController extends Controller
{
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Jobs\ManageEvents;
class Kernel extends ConsoleKernel
<?php
$a = '02/02/2018';
$b = '10/07/2018';
$atual = $a;
$dia = null;
while($atual != $b){
$dia = DateTime::createFromFormat('d/m/Y', $atual)->format('D');
if( $dia == 'Thu' ){