Which result do you get in console from this console log?
console.log(props.boards)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello! So I would like to update regarding my issue here, it seems I have coded something wrong to revert me to the same error:
This is how my Code is looking:
BoardController:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Inertia\Inertia;
class BoardController extends Controller
{
public function index()
{
return Inertia::render('Boards', [
'boards' => auth()->user()->boards
]);
}
public function show()
{
return Inertia::render('Board');
} //
}
Boards.vue
<script setup>
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue';
import { PlusIcon } from "@heroicons/vue/20/solid"
import { Head, Link } from '@inertiajs/vue3';
import { ref } from 'vue';
const props = defineProps({
boards: Array,
});
const showingNavigationDropdown = ref(false);
console.log(props.boards)
</script>
<template>
<Head title="Taskboard"/>
<AuthenticatedLayout>
<div class="h-full bg-gray-700 px-4 py-6">
<div class="max-w-5xl mx-auto">
<div class="inline-flex mb-4 div.flex.items-center">
<h3 class="font-black text-lg text-gray-200 py-2">My Boards</h3>
<button class="inline-flex items-center ml-4 py-2 px-3 text-white bg-gray-700 rounded font-bold hover:bg-yellow-600">
<PlusIcon class="-ml-1 h-4 w-4"/>
<span class="ml-1 ">Create Board</span>
</button>
</div>
<ul class="grid grid-cols-1 gap-4 sm:grid-cols-3 lg:grid-cols-4">
<li
v-for="board in boards"
:key="board.id"
class="relative bg-yellow-400 hover:bg-yellow-600 rounded-md min-h-[7rem]">
<Link :href="route('boards.show', {board: board.id})"
class="p-3 text-gray-900 hover:text-gray-900 text-lg font-bold absolute inset-0">
{{ board.name }}
</Link>
</li>
</ul>
</div>
</div>
</AuthenticatedLayout>
</template>
I don't know how it keeps happening and I just want this school project to be finished :(
@likecastillo You can set your own password, now it is set to 'secret'
You can change secret to any value you which and that will be your password
bcrypt('yourpassword')
Please or to participate in this conversation.