Skip to content

Instantly share code, notes, and snippets.

@hapidjus
hapidjus / laravel-test-notification-routev2.php
Created December 16, 2019 12:01
Test Laravel mailables in browser
Route::get('mailable', function () {
$ticket = App\BidCollection::find(1)->first();
$user = Auth::user();
return (new App\Notifications\BidInvite($ticket, $user))
->toMail($user);
});
@hapidjus
hapidjus / laravel-test-notification-route.php
Created November 24, 2019 18:25
Laravel Route to test send notification
Route::get('preview-emails', function () {
$message = (new \App\Notifications\TicketCreated(\App\Ticket::first()))->toMail('test@test.com');
return $message->render();
});
@hapidjus
hapidjus / form-gutenberg.php
Last active June 29, 2020 11:46
Fix for Advanced Custom Fields high priority
// Move elements around screen.
acf.addAction('prepare', function(){
// Use setTimeout to make sure field is loaded
setTimeout(function(){
// Move #acf_after_title-sortables after
// Post Title box and add classes and css for styling