Roshan_k
Roshan_k
FFilament
Created by Roshan_k on 11/29/2024 in #❓┊help
Action
Tables\Actions\Action::make('products') ->action(function () { }) ->form([ Hidden::make('data') ->default(function ($record) { return $record->id; }), ViewField::make('test') ->view('filament.pages.event-visitor-products'), ]) ->modalHeading('Products') ->modalActions([]), here i need to hide modalActions, in v3 how to hide?
4 replies
FFilament
Created by Roshan_k on 9/26/2024 in #❓┊help
Custom Pages
public static function getPages(): array { return [ 'index' => Pages\ListEvents::route('/'), 'create' => Pages\CreateEvent::route('/create'), 'edit' => Pages\EditEvent::route('/{record}/edit'), 'register' => Pages\Registration::route('/2/register'), ]; } here 'register' => Pages\Registration::route('/2/register'), instead of 2 i need to pass record how to pass it..
3 replies
FFilament
Created by Roshan_k on 9/10/2024 in #❓┊help
filters
Iam using SelectFilter in resource, while selecting item in a filter the table data not filtering, only when i reload the page that time only filtering, why like this? and my code will be like ->filters([ SelectFilter::make('day_id') ->label('Day') ->options(fn () => WeekDay::whereNot('id', config('constants.weekend_day.sunday'))->get()->pluck('name', 'id')->toArray()) ->query(function (Builder $query, array $data) { if (!empty($data['value'])) { $query->where('day_id', $data['value']); } }), ])
6 replies
FFilament
Created by Roshan_k on 10/16/2023 in #❓┊help
How to Use CopyAction
protected function getActions(): array { return [ CopyAction::make()->icon('heroicon-s-clipboard-list')->copyable(fn () => 'ABCD' ), ]; } I need copy to clipboard, how to impliment this in v2..
6 replies
FFilament
Created by Roshan_k on 9/28/2023 in #❓┊help
Select
default() is not working in Select::() tag for $context Edit, any other option is there to give a default value(the default value should be $record value).
3 replies
FFilament
Created by Roshan_k on 9/23/2023 in #❓┊help
How to Remove page search
No description
7 replies
FFilament
Created by Roshan_k on 9/22/2023 in #❓┊help
Location tagging
Can we tag current Geo laction in filament v2?
2 replies
FFilament
Created by Roshan_k on 9/22/2023 in #❓┊help
Menu
For the Menu created using custom page when clicking that menu was not highlighting with colour
5 replies
FFilament
Created by Roshan_k on 9/18/2023 in #❓┊help
getTableQuery
Can we return array inside getTableQuery instead of model, because Iam getting data by combining three database Tables
protected function getTableQuery(): Builder { return Arr::get($this->final_result, 'result'); }
8 replies
FFilament
Created by Roshan_k on 9/13/2023 in #❓┊help
Searchable()
How to give searchable() to TextColumn if the datafield having array like this ["2", "4"]..
2 replies
FFilament
Created by Roshan_k on 9/11/2023 in #❓┊help
FileUpload
After Uploading a image using Fileupload the preview of image not loading , iam getting an error..This is my code FileUpload::make('details.image')->preserveFilenames()->enableOpen() ->getUploadedFileNameForStorageUsing(function (TemporaryUploadedFile $file): string { $timestamp = Carbon::now()->timestamp; return (string) str($file->getClientOriginalName())->prepend($timestamp.'_'); }) ->image()->directory('incident-images')->enableDownload()->label('Image Upload'), this is .env APP_URL=http://localhost, this is my filesystem 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), 'throw' => false, ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', 'throw' => false, ], , please anyone help me to solve this error
4 replies
FFilament
Created by Roshan_k on 9/5/2023 in #❓┊help
FileTypes
How to give acceptedFileTypes only jpeg, jpg, png in FileUpload(image)
2 replies
FFilament
Created by Roshan_k on 8/26/2023 in #❓┊help
MiddleWare
How to add Additional Middleware in Filament Breezy.
2 replies
FFilament
Created by Roshan_k on 8/17/2023 in #❓┊help
Pdf export
Can we export pdf file as like excel export?
5 replies
FFilament
Created by Roshan_k on 8/4/2023 in #❓┊help
Action Url
How to get record from one resource to another resource through Action Url...
12 replies
FFilament
Created by Roshan_k on 7/18/2023 in #❓┊help
Custom page
After creating data using reource need to redirect to a custom page with created record id, how to get that id through route.. in getgaes of resource i added like this public static function getPages(): array { return [ 'details' => Pages\VehicleDetails::route('/details'), ]; }, in createpage i added protected function getRedirectUrl(): string { return $this->getResource()::getUrl('details'); }
4 replies
FFilament
Created by Roshan_k on 6/26/2023 in #❓┊help
Select Column Confirmation
Is there any way to give confirmation popup for selectcolumn
2 replies
FFilament
Created by Roshan_k on 6/12/2023 in #❓┊help
Widget
3 replies
FFilament
Created by Roshan_k on 5/25/2023 in #❓┊help
Printpdf Dialog
can we open a printpdf dialog box with print pdf page in actions..
2 replies
FFilament
Created by Roshan_k on 5/24/2023 in #❓┊help
Redirects
I want to Redirect from a page to another page,..page is get redirecting i need to send data with it.. Action::make('pay_fees') ->action(function (array $data, $record): void { Redirect::to('app/student-reg-fee-reciept')->with(['student' => $record]); }) the data in another page showing null public function mount(Request $request) { dd($request->get('student')); $this->record = Student::query()->find($request->get('student')); }...how to get data in mount
5 replies