This file contains hidden or 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 Hospitable\Avalara\Casts; | |
| use Carbon\CarbonInterface; | |
| use DateTimeZone; | |
| use Spatie\LaravelData\Casts\DateTimeInterfaceCast; | |
| use Spatie\LaravelData\Casts\Uncastable; | |
| use Spatie\LaravelData\Exceptions\CannotCastDate; | |
| use Spatie\LaravelData\Support\DataProperty; |
This file contains hidden or 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 Tests\Asserts; | |
| use App\Enums\DeliveryStatus; | |
| use App\Enums\DistributionRoundStatus; | |
| use App\Enums\DistributionStopType; | |
| use App\Enums\DistributionTaskStatus; | |
| use App\Enums\PackingStationType; | |
| use App\Enums\ProductStockEventReason; |
This file contains hidden or 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\Nova; | |
| use App\Nova\Fields\DateTime; | |
| use Carbon\CarbonImmutable; | |
| use Cron\CronExpression; | |
| use Illuminate\Http\Request; | |
| use Laravel\Nova\Fields\Boolean; | |
| use Laravel\Nova\Fields\Text; |
This file contains hidden or 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 | |
| Repository::macro('swr', function (string $key, DateInterval|DateTimeInterface|int $tts, DateInterval|DateTimeInterface|int $ttl, Closure $callback): mixed { | |
| /** @var Repository $this */ | |
| if ($this->getSeconds($tts) >= $this->getSeconds($ttl)) { | |
| throw new UnexpectedValueException('The time-to-stale value must be less than the time-to-live value.'); | |
| } | |
| $ttsKey = "{$key}:tts"; | |
| $revalidatingKey = "{$key}:revalidating"; |
This file contains hidden or 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\Geotools\Data; | |
| use App\Geotools\Casts\GeographyCast; | |
| use App\Geotools\Contracts\GeoJsonable; | |
| use App\Geotools\Contracts\WellKnownTextable; | |
| use App\Geotools\GeoJson\GeoJson; | |
| use App\Geotools\GeoJson\Point; | |
| use App\Geotools\Value\WktString; |
This file contains hidden or 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 | |
| class CreateTenantRequest extends Formrequest | |
| { | |
| public function rules(): array | |
| { | |
| return [ | |
| 'name' => ['required', 'string', 'max:255'], | |
| 'settings' => ['required', 'array', 'contrains:timezone,currency'], | |
| ]; |
OlderNewer