<x-filament-panels::page.simple> <x-filament-panels::form wire:submit="create"> {{ $this->form }} <x-filament-panels::form.actions :actions="$this->getCachedFormActions()" :full-width="true" /> </x-filament-panels::form></x-filament-panels::page.simple>
<x-button type="submit" class="mt-4"> Create </x-button>
Tables\Columns\TextColumn::make('comments_count')->counts(fn (Builder $query) => $query->withCount('comments')->where('status_id', 1)) ->sortable(),
Undefined property: stdClass::$
)->createOptionUsing(function ($data) { $newProducer = new Producer(); $newProducer->fill($data); $newProducer->user_id = Auth::id(); $newProducer->save(); return $newProducer->id;
Once a table and form have been defined for the relation manager, visit the Edit or View page of your resource to see it in action.