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 | |
| expect()->extend('toHaveLoadedRelations', function (array $relations) { | |
| $model = $this->value; | |
| $tested = []; | |
| expect($model)->toBeInstanceOf(Model::class, 'toHaveLoadedRelations expects a Model instance.'); | |
| assert($model instanceof Model); |
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\Support\I18n; | |
| class DateFormatConverter | |
| { | |
| /** | |
| * A map of UTS #35 date format tokens to PHP DateTime format tokens. | |
| * | |
| * A UTS token key with a trailing + will match to any token as long or longer than the number |
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
| @props(['paginate']) | |
| @if(!empty($paginate) && $paginate['total_pages'] > 1) | |
| @php | |
| $hasSlider = count($paginate['links']['segments']['slider']) > 0; | |
| $hasLast = count($paginate['links']['segments']['last']) > 0; | |
| @endphp | |
| <nav class="isolate inline-flex -space-x-px rounded-md shadow-xs" aria-label="Pagination"> | |
| @if($paginate['prev_page']) |