Finn
Finn
FFilament
Created by phydeaux on 3/1/2024 in #❓┊help
Radio button layout based on media breakpoint?
I've got this exact question, wondering if you ever found a solution? @phydeaux
4 replies
FFilament
Created by Finn on 10/23/2023 in #❓┊help
Required but only on create?
worked perfectly, thank you. 🙂
9 replies
FFilament
Created by Finn on 10/11/2023 in #❓┊help
Filtering a Select field's options based on a parent relationship
If anyone has any experience using this plugin could you please let me know 🙏
4 replies
FFilament
Created by Finn on 10/11/2023 in #❓┊help
Filtering a Select field's options based on a parent relationship
would this package be able to handle this sort of thing? https://github.com/CodeWithDennis/filament-select-tree
4 replies
FFilament
Created by Finn on 10/6/2023 in #❓┊help
Use a custom widget to run a command from the dashboard
Here's what I've got going on atm, my report generating functionality is happening in a controller method which is called by the route that the user is redirected to. StatusReport.php
<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class StatusReport extends Widget
{
protected static string $view = 'filament.widgets.status-report';

public function download()
{
return response()->redirectToRoute('download-status-report');
}
}
<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class StatusReport extends Widget
{
protected static string $view = 'filament.widgets.status-report';

public function download()
{
return response()->redirectToRoute('download-status-report');
}
}
status-report.blade.php
<x-filament-widgets::widget>
<x-filament::section>
<div>
<h1>Reports</h1>
<button type="button" wire:click="download">Download Status Report</button>
</div>
</x-filament::section>
</x-filament-widgets::widget>
<x-filament-widgets::widget>
<x-filament::section>
<div>
<h1>Reports</h1>
<button type="button" wire:click="download">Download Status Report</button>
</div>
</x-filament::section>
</x-filament-widgets::widget>
The only thing I'd like to do now is add some CSS to the widget, as currently everything looks the same. Would I have to register a custom stylesheet as a filament asset in the AppServiceProvider?
11 replies
FFilament
Created by Finn on 10/6/2023 in #❓┊help
Use a custom widget to run a command from the dashboard
so are custom widgets essentially just livewire components? If I wanted to attach a custom URL to one would I put that in the view or the class?
11 replies
FFilament
Created by Finn on 9/25/2023 in #❓┊help
Edit relation manager spacing in infolist
worked perfectly - thank you very much, Patrick 🛟 🙂
11 replies
FFilament
Created by Finn on 9/25/2023 in #❓┊help
Edit relation manager spacing in infolist
thank you, I'll take a look!
11 replies
FFilament
Created by Finn on 9/25/2023 in #❓┊help
Edit relation manager spacing in infolist
I'm not entirely sure how to implement any custom CSS without breaking everything 😅 can you point me in the right direction for how I would go about doing this?
11 replies
FFilament
Created by Finn on 9/21/2023 in #❓┊help
Selecting only a year
I ended up going for this:
Select::make('redacted_date_field')
->options(array_combine(range(now()->year, 1900), range(now()->year, 1900)))
->hidden(fn(Get $get): bool => $get('redacted_bool_field') === false),
Select::make('redacted_date_field')
->options(array_combine(range(now()->year, 1900), range(now()->year, 1900)))
->hidden(fn(Get $get): bool => $get('redacted_bool_field') === false),
6 replies
FFilament
Created by Finn on 9/21/2023 in #❓┊help
Selecting only a year
I was looking for something like this but wasn't sure how to do it! Thanks 🙂
6 replies
FFilament
Created by Finn on 9/15/2023 in #❓┊help
Setting a default value for hidden fields
thanks guys, wasn't aware of that functionality beforehand 👍
8 replies
FFilament
Created by Finn on 9/14/2023 in #❓┊help
Enable relational manager table actions based on a policy
this worked! thank you 😄
5 replies