Save relationship first before creating model

So I need to save the relationship first then create a model and sync it
No description
Hussain4real43d ago
use the beforeCreate hook alternatively you can also use the handleRecordCreation method
Lim43d ago
@Hussain4real is there a reason why I cant get the other inputs?
Hussain4real43d ago
what do you mean? dd $data to see if it's in beforeCreat() hook, dd $this->data
Want results from more Discord servers?
Add your server
More Posts
Calculate Totals in the footer for a table componentHow can calculate the total balance of the customers and show it in the footer .Note this table compFilter using columnsHello, I'm having difficulty creating a filter in a query that I inserted in the columns. How can I Hiring a senior mobile app developer from India or PakistanI have some mobile projects. I want someone have over 3 years experience. And especially I hope reacGet current row record in custom action```php Tables\Actions\Action::make('make_additional_payment') ->label('Наплати дSelect multiple preloaded options are reordered after selecting the inputI have a select multiple that is formFilled with options already attached on a BelongsToMany relatioError on trying to edit or create a new role at SHIELD pluginIm getting ```count(): Argument #1 ($value) must be of type Countable|array, null given``` this errotesting repeater / fillForm / fill default itemHi - I'm just getting started writing tests for my app with Pest. My first and most high-traffic resUse fa-icon in table builderI'm working in a project who already have a database in production. The database have a table with aIs there a difference between these two `Auth::user()` vs `Filament::auth()->user()`?Is there anytime where using one or the other is beneficial?larazeus popover pop under table header/footerHello, having a problem, when i add a popover in a table, it's showing under the tablefooter/header.Laravel Breeze and filamentHi everyone, i use filament for the admin panel that is registered on /admin, then i have an api endSetting an input value from outside the repeater?I need to set some input's values from outside the repeater using afterStateUpdated but I can not geIs it possible to add custom variables for creating contracts in the Rich Editor?I need to create a contract template where variables such as names, addresses, and personal documentFilament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():Hi guys .. i'm on ContratoResource file wich list contracts. Each contract can have one item createdHow to record the last login (online) time of a user?The user table has created_at and updated_at fields. I want to add a logged_at field. To track whenstruggle with select field =_=i create a Select then for its option i have a model which has this relation: > `public function fiwhat merhod to use in import action: castStateUsing or filstateUsingHi everyone, i have a table with id and name and i want to modify name, while importing, based on a Weird login error after livewire updateAfter `composer update` I can't login to filament. I see the login form but the password field is aReusable sectionsHi, I was wondering how you usually create reusable parts for example e.g. infolists or forms? For efiltersForm()Im using custom livewire page with widget with table. I have defined filter form and $this->filters