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\Concerns; | |
trait ArrayableEnum | |
{ | |
/** | |
* Array represntation of a backed enum, keyed by values. | |
*/ | |
public static function toArray(): array |
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 Illuminate\Support\Facades\Redis; | |
class RedisService | |
{ | |
public static function getValues(string $connection) | |
{ |
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\Console\Commands\Misc; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Cache; | |
use RicorocksDigitalAgency\Soap\Facades\Soap; | |
/** | |
| | |
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; | |
class StringService | |
{ | |
/** | |
* Find ALL strings that are between two strings. Optionally include delimiters. | |
*/ | |
function strBetweenAll(string $string, string $start, string $end, bool $includeDelimiters = false, int &$offset = 0): ?array |
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\Listeners; | |
use Illuminate\Mail\Events\MessageSending; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Queue\InteractsWithQueue; | |
class ApplyMailHeader | |
{ |
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 | |
use Illuminate\Support\Facades\DB; | |
use PDO; | |
class ClassName { | |
public static function methodName(String $customer, String $item_number){ | |
$input_param = 'blah'; |
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 class="backdrop-filter backdrop-blur-3xl backdrop-saturate-150 bg-black bg-opacity-40 rounded-2xl"> | |
<!-- Content --> | |
</div> |
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 | |
Mail::raw("This is the email's text. ", function($message){ | |
$message->to('bennett@bscx.us') | |
->subject('Email via Callback'); | |
}); |