Oumaima
Oumaima
FFilament
Created by Oumaima on 12/14/2023 in #❓┊help
filters form in dashboard
No description
5 replies
FFilament
Created by Oumaima on 12/9/2023 in #❓┊help
navigation with custom page
No description
5 replies
FFilament
Created by Oumaima on 12/1/2023 in #❓┊help
two resources in one table widget
I have a table called postponed orders , I want to fetch the orders and leads where they hav the postponed_date equals to today . the problem : How can I collect them in one table widget , (Note : Lead & Order are separated models )
2 replies
FFilament
Created by Oumaima on 11/25/2023 in #❓┊help
collect repeatable entry in a table
No description
3 replies
FFilament
Created by Oumaima on 11/11/2023 in #❓┊help
Filament button inside foreach
What I'm trying to do is foreach products from database , each product has a button which opens a modal The problem is : when I click order in one product , all the products button spinns , and I don't want that . I have tried to add an ID or something like that , but it does not work . this is my code : <div class="group bg-white shadow-sm rounded-xl p-4 mb-4"> ... <x-filament::button outlined class="grid mx-auto mt-3 mb-4 w-96" icon="heroicon-o-shopping-cart" wire:click="openModal" > Order </x-filament::button> <x-filament::modal id="place-order" displayClasses='block'> .. <x-filament::button icon="heroicon-o-shopping-cart" wire:click="order"> Order </x-filament::button> </x-filament::modal> </div>
4 replies
FFilament
Created by Oumaima on 10/16/2023 in #❓┊help
RegistrationResponse
How can I change the redirection url after the registration , I want to display a custom page , not the login form , and this is the register method : public function register(): ?registrationSuccess { try { $this->rateLimit(2); } catch (TooManyRequestsException $exception) { Notification::make() ->title(__('filament-panels::pages/auth/register.notifications.throttled.title', [ 'seconds' => $exception->secondsUntilAvailable, 'minutes' => ceil($exception->secondsUntilAvailable / 60), ])) ->body(array_key_exists('body', __('filament-panels::pages/auth/register.notifications.throttled') ?: []) ? __('filament-panels::pages/auth/register.notifications.throttled.body', [ 'seconds' => $exception->secondsUntilAvailable, 'minutes' => ceil($exception->secondsUntilAvailable / 60), ]) : null) ->danger() ->send(); return null; } $data = $this->form->getState(); $role = Role::where('name' , 'Seller')->first(); $data['role_id'] = $role->id; $user = $this->getUserModel()::create($data); $user->assignRole('Seller'); app()->bind( \Illuminate\Auth\Listeners\SendEmailVerificationNotification::class, \Filament\Listeners\Auth\SendEmailVerificationNotification::class, ); event(new Registered($user)); // Filament::auth()->login($user); // session()->regenerate(); // return app(registrationSuccess::class); }
3 replies
FFilament
Created by Oumaima on 10/13/2023 in #❓┊help
Database notification
I want to add the database notification icon in the top bar , I followed the docs : https://filamentphp.com/docs/3.x/notifications/database-notifications#overview , and when I arrived to the chapter where I should add : @livewire('database-notifications') , I didn't know where to put it , keep in mind I don't have the layout file in resources/views , can someone help me please ?
3 replies
FFilament
Created by Oumaima on 10/9/2023 in #❓┊help
The email has already been taken.
when I want to edit the user , the email field gives me this error : The email has already been taken. why ?
6 replies
FFilament
Created by Oumaima on 10/5/2023 in #❓┊help
concatenate value in text column
I have a order table , which has user name Column , And I want to concatenate the firstname and lastname of this relationship , what should I do :
->columns([
Tables\Columns\TextColumn::make('user.firstname')
->label('User name'),
])
->columns([
Tables\Columns\TextColumn::make('user.firstname')
->label('User name'),
])
Relationship :
public function user(){
return $this->belongsTo(User::class);
}
public function user(){
return $this->belongsTo(User::class);
}
6 replies
FFilament
Created by Oumaima on 9/30/2023 in #❓┊help
dashboard switch
I want to add a button in a dashboard , where I can switch between dashboard 1 and dashboard 2 , which will have differente widgets , but in the same panel , how can I do that please ?
4 replies
FFilament
Created by Oumaima on 9/27/2023 in #❓┊help
ApexCharts
How can I use Apex chart in my filament project
5 replies
FFilament
Created by Oumaima on 9/27/2023 in #❓┊help
pie chart
No description
3 replies
FFilament
Created by Oumaima on 9/22/2023 in #❓┊help
mardown editor in custom page
Please , how can I render mardown editor in a custom page ?
5 replies
FFilament
Created by Oumaima on 9/20/2023 in #❓┊help
undefined record inside bulkAction
the records is undefined , even I selected the record and click on the bulk actions : BulkAction::make('send_to_delivery') ->action(fn (Collection $records) => $records->each->delete()), ])
2 replies
FFilament
Created by Oumaima on 9/8/2023 in #❓┊help
use the same route in multiple panels
I have two panels Admin and seller , and I have a route called print labels : return [ 'index' => Pages\ListDeliveryNotes::route('/'), 'create' => Pages\CreateDeliveryNote::route('/create'), 'edit' => Pages\EditDeliveryNote::route('/{record}/edit'), 'view' => Pages\ViewdeliveryNote::route('/{record}'), 'print-labels' => Pages\printLabels::route('/labels/{number}/{record}') I want to call this route print-labels in the resource , where the prefix of the route changed : or exemple , if I'm in admin panel should be admin/delivery-note/labels/.. and if I'm in the seller panel should be seller/delivery-note/labels/.. , how can I call it , ->url(fn (DeliveryNote $record): string => route('filament.app.resources.delivery-notes.print-labels', ['number' => 6 , 'record' => $record])),
2 replies
FFilament
Created by Oumaima on 9/7/2023 in #❓┊help
remove sign up from the wizard
No description
3 replies
FFilament
Created by Oumaima on 9/4/2023 in #❓┊help
Invoice generator
What is the best plugin for invoices in filament ? thank you
3 replies
FFilament
Created by Oumaima on 9/2/2023 in #❓┊help
View page
How to prevent users from seeing products , that other users add ?
4 replies
FFilament
Created by Oumaima on 8/31/2023 in #❓┊help
open modal with js
No description
32 replies
FFilament
Created by Oumaima on 8/30/2023 in #❓┊help
undefined parmeter
Please I created a custom page and I redirect the user to the url of that page via and action /** Tables\Actions\ActionGroup::make([ Tables\Actions\Action::make('A4(x4)') ->url(fn (): string => route('filament.app.resources.delivery-notes.print-labels', ['number' => $number])), Tables\Actions\Action::make('A4(x6)'), Tables\Actions\Action::make('A4(x8)'), ]) */ but in the view of that page , the number parameter is Undefined
21 replies