test cron
This commit is contained in:
parent
77568b9cfc
commit
bb13ce79b4
3 changed files with 6 additions and 5 deletions
|
|
@ -4,6 +4,8 @@ namespace App\Console;
|
|||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
use App\Mail\AlertBr;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
|
|
@ -26,6 +28,9 @@ class Kernel extends ConsoleKernel
|
|||
{
|
||||
// $schedule->command('inspire')
|
||||
// ->hourly();
|
||||
$schedule->call(function () {
|
||||
Mail::to('thibault.richy@ldc.fr')->send(new AlertBr());
|
||||
})->daily();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,9 +14,6 @@ use App\Calendrier;
|
|||
use Illuminate\Support\Facades\Storage;
|
||||
use App\Traits\GenerateBR;
|
||||
|
||||
use App\Mail\AlertBr;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
class CouponController extends Controller
|
||||
{
|
||||
use GenerateBR;
|
||||
|
|
@ -27,7 +24,6 @@ class CouponController extends Controller
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
Mail::to('thibault.richy@ldc.fr')->send(new AlertBr());
|
||||
$campIds = Campagne::where('camp_siteId', session()->get('site')->site_id)
|
||||
->get()
|
||||
->pluck('camp_id')
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
Test de mail
|
||||
Test de mail via cron
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Reference in a new issue