This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Exports; | |
use Rap2hpoutre\FastExcel\FastExcel; | |
use Illuminate\Support\LazyCollection; | |
use Illuminate\Support\Traits\ForwardsCalls; | |
/** | |
* @method $this download($path, callable $callback = null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getInsightsUrl($region = 'ap-northeast-1') { | |
// https://stackoverflow.com/questions/67734825/why-is-laravels-carbon-toisostring-different-from-javascripts-toisostring | |
$start = now()->subMinutes(2)->format('Y-m-d\TH:i:s.v\Z'); | |
$end = now()->addMinutes(2)->format('Y-m-d\TH:i:s.v\Z'); | |
$filter = 'INFO'; | |
$logStream = 'xxx_backend_web'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH into droplet | |
# go to project | |
$ php artisan tinker | |
$ Mail::raw('Text', function ($message){$message->to('contact@contact.com');}); | |
# check your mailbox |