Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

waachosen-will's avatar

Laravel Livewire - Property type not supported in Livewire for property: [{"withTimestamps":false}]

I've been trying to set up a many-to-many pivot table between meetings and attendees. When I try to call the relationship function in MeetingForm.php

$this->attendees = $meeting->attendees();

I get the following error

Property type not supported in Livewire for property: [{"withTimestamps":false}]

I've tried also including timestamps in my migration but it makes no difference and I'd rather not have to include them, is there a way around this or is it not possible to do what I want to do?

Attendee.php


namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;

class Attendee extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = ['name', 'email'];

    /**
     * Get the meetings for the attendee.
     *
     * @return BelongsToMany
     */
    public function meetings(): BelongsToMany
    {
        return $this->belongsToMany(Meeting::class);
    }
} 

Meeting.php

attendee_meeting migration

MeetingForm.php

0 likes
2 replies
jj15's avatar
jj15
Best Answer
Level 10

I believe you're receiving that error because $meeting->attendees() returns a relationship object, which Livewire doesn't support (as it needs to turn everything into JSON and back on each request).

Using $meeting->attendees (calling it like a property), should work as it returns a collection of Eloquent models, which Livewire does support.

You can view the property types that Livewire supports here in the docs.

1 like

Please or to participate in this conversation.