Skip to content

Instantly share code, notes, and snippets.

View utsavsomaiya's full-sized avatar
:octocat:
Ruby is rubbish! PHP is phpantastic!

Utsav Somaiya utsavsomaiya

:octocat:
Ruby is rubbish! PHP is phpantastic!
View GitHub Profile
@utsavsomaiya
utsavsomaiya / custom-web-element.html
Created August 28, 2024 16:23
My custom web element
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

Day 1 (27th August 2024)

  • 8:30 pm - Nuno Maduro - Pest
  • 9:00 pm - Luke Downing - Lessons From the Framework
  • 9:50 pm - Philo Hermans - Livewire Beyond the Basics
  • 10:20 pm - Mateus Guimaraes - Behind Laravel Octane
  • 12:40 am (28th August) - Rissa Jackson - D&D Strategies for Software Excellence
  • 1:10 am - Colin DeCarlo - Laravel and AI
  • 1:40 am - Daniel Coulbourne - Verbs for Laravel
  • 2:35 am - Taylor Otwell - Laravel Keynote
<?php
Route::get('/test', function () {
$client = new SoapClient(
'https://sandbox.usaepay.com/soap/gate/15E7FB61/usaepay.wsdl'
);
$transactionKey = '_V87Qtb513Cd3vabM7RC0TbtJWeSo8p7';
$transactionPin = '123456';
@utsavsomaiya
utsavsomaiya / learning.md
Last active March 17, 2024 16:37
Learning Posts

How can we create notes and warning in PR description

PHP Accessing Private or Protected Property and Methods

<?php
Queue::assertPushed(
    TriggerEmailOrSmsServiceJob::class,
 fn (TriggerEmailOrSmsServiceJob $job): bool =&gt; $consumer-&gt;is((fn () =&gt; $this-&gt;{'consumer'})-&gt;call($job))
<div class="max-w-xl p-8">
    <div x-data="{ selectedOptions: {} }">
        <span x-text="selectedOptions + 'dsds'" class="font-bold bg-red-600"></span>
        @foreach (App\Enums\ConsumerFields::displaySelectionBox() as $name => $consumerField)
            <select
                x-model="selectedOptions['{{ $consumerField->value }}']"
                class="form-input"
            >
<?php
declare(strict_types=1);
namespace App\Console\Commands;
use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;