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
| <script setup> | |
| // 1. Import 'ref' from Vue | |
| import { ref } from 'vue'; | |
| // 2. Import Inertia helpers | |
| import { Link, usePage } from '@inertiajs/vue3'; | |
| // 3. Import Heroicons as a namespace (to fix the previous error) | |
| import * as HeroIcons from '@heroicons/vue/24/outline'; |
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
| appHttpControllersAdminEventModerationControllerphp | |
| <?php | |
| namespace App\Http\Controllers\Admin; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\Event; | |
| use Illuminate\Http\Request; | |
| class EventModerationController extends Controller |
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\Http\Controllers\Admin; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\Event; | |
| use Illuminate\Http\Request; | |
| class EventModerationController extends Controller | |
| { |
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
| Illuminate \ Database \ Eloquent \ RelationNotFoundException | |
| PHP 8.3.6 | |
| 11.7.0 | |
| Call to undefined relationship [country] on model [App\Models\Location]. | |
| 13 vendor frames | |
| App \ Http \ Controllers \ Admin \ AdminLeagueController : 36 | |
| index | |
| 52 vendor frames |
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
| <!-- resources/js/Pages/Admin/Players/Index.vue --> | |
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, router } from '@inertiajs/vue3' | |
| import { ref, computed, watch } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| players: Object, // paginator |
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
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, router } from '@inertiajs/vue3' | |
| import { ref, computed, watch } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| teams: Object, // paginator | |
| leagues: Array, |
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
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, router } from '@inertiajs/vue3' | |
| import { ref, computed, watch } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| leagues: Object, // paginator | |
| filters: Object, |
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
| <!-- resources/js/Pages/Admin/Players/CreateEdit.vue --> | |
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, useForm } from '@inertiajs/vue3' | |
| import { computed } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| mode: { type: String, required: true }, // 'create' | 'edit' |
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
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, useForm } from '@inertiajs/vue3' | |
| import { computed } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| mode: { | |
| type: String, |
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
| <script setup> | |
| import AppLayout from '@/Layouts/AppLayout.vue' | |
| import { Head, Link, useForm } from '@inertiajs/vue3' | |
| import { computed } from 'vue' | |
| defineOptions({ layout: AppLayout }) | |
| const props = defineProps({ | |
| mode: { | |
| type: String, |
NewerOlder