Vp
Vp
FFilament
Created by KingNii on 1/26/2025 in #❓┊help
Second Panel
or just create like normal, it will ask on prompt
5 replies
FFilament
Created by Fazaa on 1/24/2025 in #❓┊help
Avatar Profile not showing using Edit Profile Plugin
or maybe problem in the plugin you used
12 replies
FFilament
Created by Fazaa on 1/24/2025 in #❓┊help
Avatar Profile not showing using Edit Profile Plugin
ok then app_url in .env it should be like http://localhost:8000 (notice the port)
12 replies
FFilament
Created by Fazaa on 1/24/2025 in #❓┊help
Avatar Profile not showing using Edit Profile Plugin
either storage link or app_url misconfig
12 replies
FFilament
Created by Tom on 1/22/2025 in #❓┊help
#fileupload #test #pest
My BlogFactory have fake()->imagepath() ? so i only test like this..
7 replies
FFilament
Created by Diana on 10/16/2023 in #❓┊help
assertTableActionDataSet() on a form with FileUpload field
Try checking like this, but not sure it will works for you or not https://discord.com/channels/883083792112300104/1331765576812593273/1331834242342195353
6 replies
FFilament
Created by Tom on 1/22/2025 in #❓┊help
#fileupload #test #pest
This is how I test for edit with file upload
it('can save', function () {
FileUpload::configureUsing(function (FileUpload $component) {
$component->preserveFilenames();
});

$formFilename = Str::random().'.jpg';
$formImage = UploadedFile::fake()->image($formFilename);

$blog = BlogFactory::new()->create();
$newData = BlogFactory::new()->make([
'image' => $formImage,
]);

livewire(BlogResource\Pages\EditBlog::class, [
'record' => $blog->getRouteKey(),
])
->fillForm([
'title' => $newData->title,
'slug' => $newData->slug,
'image.0' => $formImage,
...
])
->call('save')
->assertHasNoFormErrors()
->assertRedirect(BlogResource::getUrl());

expect($blog->refresh())
->title->toBe($newData->title)
->image->toBe("blogs/{$formFilename}")
...;
});
it('can save', function () {
FileUpload::configureUsing(function (FileUpload $component) {
$component->preserveFilenames();
});

$formFilename = Str::random().'.jpg';
$formImage = UploadedFile::fake()->image($formFilename);

$blog = BlogFactory::new()->create();
$newData = BlogFactory::new()->make([
'image' => $formImage,
]);

livewire(BlogResource\Pages\EditBlog::class, [
'record' => $blog->getRouteKey(),
])
->fillForm([
'title' => $newData->title,
'slug' => $newData->slug,
'image.0' => $formImage,
...
])
->call('save')
->assertHasNoFormErrors()
->assertRedirect(BlogResource::getUrl());

expect($blog->refresh())
->title->toBe($newData->title)
->image->toBe("blogs/{$formFilename}")
...;
});
7 replies
FFilament
Created by Señor Nikola on 1/23/2025 in #❓┊help
Navigation Item Sorting
No, not atm iirc
3 replies
FFilament
Created by Abdulrehman on 1/22/2025 in #❓┊help
Filament annoying or be praised
lack of knowledge in livewire?
21 replies
FFilament
Created by Ne on 1/22/2025 in #❓┊help
Select the option Obstructed from view by repeater
Oh, the dropdown is inside the container.. no idea this sorry
14 replies
FFilament
Created by Ne on 1/22/2025 in #❓┊help
Select the option Obstructed from view by repeater
14 replies
FFilament
Created by Ne on 1/22/2025 in #❓┊help
Select the option Obstructed from view by repeater
what to fix?
14 replies
FFilament
Created by Roland Barkóczi on 12/6/2024 in #❓┊help
test relationmanager CreateAction
This is how I test for normal --simple resource, since relation manager create also uses modal I guess you can do like this as well
it('can create new data', function () {
$newData = AnnouncementFactory::new()->create();

livewire(AnnouncementResource\Pages\ManageAnnouncements::class)
->mountAction('create')
->setActionData([
'title' => $newData->title,
'detail' => $newData->detail,
])
->callMountedAction();

$this->assertDatabaseHas(Announcement::class, [
'title' => $newData->title,
'detail' => $newData->detail,
]);
});
it('can create new data', function () {
$newData = AnnouncementFactory::new()->create();

livewire(AnnouncementResource\Pages\ManageAnnouncements::class)
->mountAction('create')
->setActionData([
'title' => $newData->title,
'detail' => $newData->detail,
])
->callMountedAction();

$this->assertDatabaseHas(Announcement::class, [
'title' => $newData->title,
'detail' => $newData->detail,
]);
});
4 replies
FFilament
Created by Gandalf on 12/5/2024 in #❓┊help
Disable 'Create' and 'Create & create another' buttons until all required fields are filled
6 replies
FFilament
Created by Gandalf on 12/5/2024 in #❓┊help
Disable 'Create' and 'Create & create another' buttons until all required fields are filled
I think you're using wizard in a wrong way, you shouldn't have create and create_another button, you need to have next and previous/cancel and submit at last step, follow this for more https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard
6 replies
FFilament
Created by abdullafahem on 12/5/2024 in #❓┊help
Query Strings in Action
smth like route('route.name', ['record' => 1, 'activeTab' => 'abc']) ?
6 replies
FFilament
Created by Asmit Nepali on 6/7/2024 in #❓┊help
Filament file upload issue
No idea, this is the PR to disable grammarly you can check and maybe try to set similar
9 replies
FFilament
Created by Roshan_k on 11/29/2024 in #❓┊help
Action
->modalSubmitAction(false)
->modalCancelAction(false)
->modalSubmitAction(false)
->modalCancelAction(false)
4 replies
FFilament
Created by Asmit Nepali on 6/7/2024 in #❓┊help
Filament file upload issue
9 replies
FFilament
Created by ericmp on 11/22/2024 in #❓┊help
On sm, filament admin panel nav at the bottom of the screen
the user menu also not looking good, I show you how you can transform, the rest you have to figure out since filament is not design to behave like this.
14 replies