Andy.PB
Andy.PB
FFilament
Created by Skrypt on 4/4/2024 in #❓┊help
Testing - get created record
I don´t know how to retrieve the created record id, so I simply assume which record was created and load the model for further testing: Livewire::actingAs($user) ->test(ArticleCreate::class) ->fill($data) ->call('create') ->assertHasNoFormErrors() ->assertStatus(200) ->assertSessionHas('success', 'Article created successfully.') ->assertRedirect('/article/1'); $this->assertDatabaseCount('articles', 1); $article = Article::find(1);
3 replies
FFilament
Created by Mark Chaney on 3/28/2024 in #❓┊help
Hide Column From Export
If you are using the Excel-Export Plugin there is a an Except() option.
5 replies
FFilament
Created by Shiv on 2/4/2024 in #❓┊help
how to access current record in form function of Resource file
I found a little hack to get the record id, so i can find() the model: $form->getlivewire()->record->id
17 replies
FFilament
Created by Shiv on 2/4/2024 in #❓┊help
how to access current record in form function of Resource file
@Shiv I have the same problem. Did you manage to access the record?
17 replies