Skip to content

Instantly share code, notes, and snippets.

@leecolarelli
Created June 26, 2024 07:52
Show Gist options
  • Select an option

  • Save leecolarelli/8beacace64cb96db480c630447e3b0da to your computer and use it in GitHub Desktop.

Select an option

Save leecolarelli/8beacace64cb96db480c630447e3b0da to your computer and use it in GitHub Desktop.
Laravel Test Route for Notifications
Route::get('mailable', function () {
$store = App\Models\Store\Store::find(9);
$certificate = App\Models\Certificate::find(1);
return (new App\Notifications\Certificate\CertificateUploaded($store, $certificate))->toMail((object) [])->render();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment