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
<div id="toast" class="hidden"> | |
<span id="toast-message">Success message</span> | |
</div> | |
<script> | |
function showToast(message, type = 'success') { | |
const toast = document.getElementById('toast'); | |
const toastMessage = document.getElementById('toast-message'); | |
toastMessage.textContent = message; |
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
<script> | |
const largeImageUrl = '/path/to/large-image.jpg'; | |
const bodyElement = document.querySelector('body'); | |
const largeImage = new Image(); | |
largeImage.src = largeImageUrl; | |
largeImage.onload = () => { | |
bodyElement.style.backgroundImage = `url(${largeImageUrl})`; | |
}; | |
</script> |
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\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
class AssignRequestId | |
{ |
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\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Facades\Log; | |
class RequestLogger | |
{ | |
/** |
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\Jobs; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; | |
use Illuminate\Http\UploadedFile; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Queue\SerializesModels; |
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\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Route; | |
class CheckUserPermissions |
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\Services; | |
use Kreait\Firebase\Factory; | |
use Google\Cloud\Firestore\FieldValue; | |
use Throwable; | |
class FirestoreNotificationService | |
{ |
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\Services; | |
use Throwable; | |
use App\Models\User; | |
use App\Models\UserCard; | |
use App\Exceptions\StripeApiException; | |
use Stripe\StripeClient; |
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\Services; | |
use Kreait\Firebase\Factory; | |
use App\Jobs\ProcessEmail; | |
use App\Exceptions\InvalidIdTokenException; | |
use App\Exceptions\UserAlreadyRegisteredException; | |
use App\Exceptions\UserBlockedException; | |
use App\Exceptions\AccessForbiddenException; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Payment Form</title> | |
<!-- Include Stripe.js --> | |
<script src="https://js.stripe.com/v3/"></script> | |
</head> |
NewerOlder