Modal window does not create a map.
Hello! I have encountered a problem that the form in my modal window does not create a map.
Livewire/show-user-cards.blade.php:
<div>
<div class="py-5">
<form wire:submit.prevent="create">
{{ $this->form }}
</form>
</div>
{{$this->table}}
</div>
Filament/pages/show-user-cards.balde.php:
<x-filament-panels::page>
<livewire:show-user-cards :user-id="$userId"/>
</x-filament-panels::page>
Filament/Pages/ShowUserCards.php:
<?php
namespace App\Filament\Pages;
use Filament\Pages\Page;
class ShowUserCards extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.show-user-cards';
protected static bool $shouldRegisterNavigation = false;
}
If you need additional pin information, I will provide it immediately!
Thanks in advance ❤️
Solution:Jump to solution
Seems like a complicated approach. just make the card button an action that loads a ->form() and users ->model() fillForm() and uses a repeater?
```php
\Filament\Tables\Actions\Action::make('account_records')
->label(' ')...
7 Replies
What's the problem? What do you mean it doesn't create a map?
In the video I showed that the table shows the user's current cards and they can be deleted, but they cannot be created
Sorry, I still don't understand what's wrong 🙏
The thing is that when you click the send button, a record with the card number and user_id is not created in the cards table, although it should be
Solution
Seems like a complicated approach. just make the card button an action that loads a ->form() and users ->model() fillForm() and uses a repeater?
According to the technical specifications, I need a table with existing maps.
I read a lot of documentation and reworked the code similar to the code from the documentation, but it still does not create.
I attached the updated code, I also attached a new video with debugbar
I really need your help ❤️