Rahul
Previewing Images from Database in File Upload Section
I have a scenario like this: I have an image field in my database where some of the image links come from an API and some links come from the file upload means, which I created through the resources. I can preview the image that is uploaded using file upload, but I am unable to preview the image that is coming from the API. However, in my table's image column, I can see all the images that come from the API and also those uploaded using file upload.
So How can I preview the image that comes from the API ??
7 replies
Navigation from Tabs to Custom Page
If I use the header action, for example, let's say I have two header actions: "User" and "Account." If I click on "Account," it redirects to the edit profile page as indicated in the URL. However, the header action is not displayed on that page. I am attempting to treat this functionality like a tab, so it remains visible on all pages. This implies that even on the edit profile page, the "User" tab should be visible. If I click on the "User" tab, it should redirect to the corresponding user section.
7 replies
Rendering Modified User Form View from Vendor File
I am using the wizard, and I want to change only the view of the wizard step. I want to use a progress bar in the step 1 and step 2 positions, maintaining the functionality of the wizard. Therefore, I have also modified the code in the vendor file, and now the progress bar is displaying correctly. Now, my only goal is to use that code outside .
10 replies
Livewire\Exceptions\ComponentNotFoundException issue
Could someone please assist me in fixing this issue? I also changed the file structure, but it's not working.
and i got below error
Livewire\Exceptions\ComponentNotFoundException
Unable to find component: [app.filament.resources.appraisal-response-resource.pages.appraisal-response-request]
15 replies
Livewire\Exceptions\ComponentNotFoundException issue
And this is my ApprisalResponseRequest Code (Custom Resource Page) :
class AppraisalResponseRequest extends EditRecord
{
protected static string $resource = AppraisalResponseResource::class;
protected static string $layout = 'components.appraisal-response-request.layouts.index';
protected function authorizeAccess(): void
{
}
public function mount(int | string $record = null): void
{
try {
$data = JWT::decode(app('request')->input('token'), ['header' => true]);
} catch (\Throwable $th) {
abort(403);
}
$appraisal_response = AppraisalResponse::where([['id', $data['response_id']], ['status', AppraisalResponseStatus::DRAFT]])->first();
if (!$appraisal_response) {
abort(404);
}
parent::mount($appraisal_response->id);
}
protected function getHeaderActions(): array
{
return [
//
];
}
protected function afterSave(): void
{
$this->record->status = AppraisalResponseStatus::SUBMITTED();
$this->record->save();
}
public function form(Form $form): Form
{
$form = static::$resource::form($form, true);
return $form;
}
}
15 replies