filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.08k stars 2.83k forks source link

Modal Form not able to create record using the multi-tenancy #8681

Closed renztoygwapo closed 1 year ago

renztoygwapo commented 1 year ago

Package

filament/filament

Package Version

v3

Laravel Version

v10

Livewire Version

3

PHP Version

php 8.2

Problem description

I am setting up the multi-tenancy and then created resource using the --simple tag which is modal. the tenant_id when creating the record doesnt able to include on the save function the reason it wil get an errror.

Expected behavior

the tenant_id should automatically filled up since they are already related each other and done setting up their relationships

Steps to reproduce

  1. setting up multi-tenancy
  2. create a model and migration
  3. setting up relationship many-to-many relation
  4. create a resource with a --simple tag
  5. Create a form -> this time you cannot save the form.

Reproduction repository

production

Relevant log output

No response

github-actions[bot] commented 1 year ago

Hey @renztoygwapo! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

renztoygwapo commented 1 year ago
image