btx
btx
FFilament
Created by btx on 7/17/2024 in #❓┊help
New Custom Page 404
Hi, I created a new custom page (the first one) in my project using php artisan make:filament-page QueueDashboard. However the page is not reachable, and not showing up in the sidebar. Using route:list shows the route
GET|HEAD admin/queue-dashboard .............................................................................................................................................................................................................. filament.admin.pages.queue-dashboard › App\Filament\Pages\QueueDashboard
GET|HEAD admin/queue-dashboard .............................................................................................................................................................................................................. filament.admin.pages.queue-dashboard › App\Filament\Pages\QueueDashboard
But when I call /admin/queue-dashboard, I get 404. Whats wrong ?? 😓 The Class has the following content:
<?php

namespace App\Filament\Pages;

use Filament\Pages\Page;

class QueueDashboard extends Page {
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.queue-dashboard';

protected ?string $heading = 'Custom Page Heading';

protected static ?string $navigationLabel = 'Custom Navigation Label';

public static function canAccess(): bool {
return true;
}
}
<?php

namespace App\Filament\Pages;

use Filament\Pages\Page;

class QueueDashboard extends Page {
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.queue-dashboard';

protected ?string $heading = 'Custom Page Heading';

protected static ?string $navigationLabel = 'Custom Navigation Label';

public static function canAccess(): bool {
return true;
}
}
70 replies
FFilament
Created by btx on 6/6/2024 in #❓┊help
Livewire Form Color
No description
3 replies
FFilament
Created by btx on 12/29/2023 in #❓┊help
Dehydration Status
Hey guys, I have a FileUpload form field in an Action, that uses the dehydrateStateUsing to process the uploaded file. The processing has a foreach loop. Is it possible to show a progress in the upload form using the $index of the loop?
2 replies
FFilament
Created by btx on 7/9/2023 in #❓┊help
Custom Action in Table
I am trying to create a custom Action, however I am unable to retrieve the record that I clicked on. What am I doing wrong? File: FormSubmissionResource::table()
->actions([
Tables\Actions\Action::make('import')
->label('Import')
->icon('heroicon-o-cloud-upload')
->action(function ($data) {
dd($data); // => []
})
->actions([
Tables\Actions\Action::make('import')
->label('Import')
->icon('heroicon-o-cloud-upload')
->action(function ($data) {
dd($data); // => []
})
3 replies
FFilament
Created by btx on 6/30/2023 in #❓┊help
Undefined variable $table while using table builder
12 replies
FFilament
Created by btx on 6/18/2023 in #❓┊help
Add CSS class to <html>
I implemented different themes using the tw-colors tailwind package. Now I have to render the configured class name from .env into the <html> tag, e.g. <html class="classic-theme">. But I could not find any way to achieve this so far. I created resources/views/layouts/app.blade.php but this file seems to be ignored for the admin panel. Edit: Or alternatively I can add
<html data-theme='classic'>
...
</html>
<html data-theme='classic'>
...
</html>
7 replies