matin rajabi
matin rajabi
FFilament
Created by matin rajabi on 1/20/2025 in #❓┊help
use another login for my second panel
i have a panel in my project with guard "admin" i have also another panel with guard "seller" but it must login with phone number. I wanted to know how I can have a login page with phone number based login?
4 replies
FFilament
Created by matin rajabi on 1/10/2025 in #❓┊help
getting form data from filament Repeater
Hi everyone, I am using filament repeater and everything is fine when using ->relationship(). The data is updated on edit correctly. But I want to access the information inside repeater forms before saving changes in edit action, and $data shows empty array while I have some data in my repeater. Here's code in edit: namespace App\Filament\Resources\OrderResource\Pages; use App\Filament\Resources\OrderResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; use App\Models\Order; use Illuminate\Database\Eloquent\Model; class EditOrder extends EditRecord { protected static string $resource = OrderResource::class; protected function getHeaderActions(): array { return [ // Actions\DeleteAction::make(), ]; } protected function handleRecordUpdate(Model $record, array $data): Model { dd($data); $record->update($data); return $record; } } Removing ->relationship() in my resource makes this data accessible through $data when creating new records. But removing ->relationship() causes empty repeater when editing. Any idea of how I can access and modify repeater data inside edit action?
4 replies
FFilament
Created by matin rajabi on 11/30/2024 in #❓┊help
can not install filament
No description
8 replies
FFilament
Created by matin rajabi on 11/25/2024 in #❓┊help
files not display on edit page
No description
4 replies
FFilament
Created by matin rajabi on 11/4/2024 in #❓┊help
can not access to new filament panel - fortify error
hello when I try to access my new filament panel, I got this error: Target [Laravel\Fortify\Contracts\LoginViewResponse] is not instantiable. i can't find anything in web. so can you guys help me?
2 replies
FFilament
Created by matin rajabi on 8/15/2024 in #❓┊help
resource not displaying on sidebar
hello. i create a resource with this cmd: php artisan make:filament-resource Customer --generate but it is not displaying on sidebar. i added this function in my resource file
public static function canViewAny(): bool { return true; }
but still not working. what should i do
14 replies
FFilament
Created by matin rajabi on 4/29/2024 in #❓┊help
Route [filament.admin.pages.menu] not defined. -filament-access-management
No description
3 replies
FFilament
Created by matin rajabi on 4/10/2024 in #❓┊help
display create button by condition
No description
10 replies
FFilament
Created by matin rajabi on 4/9/2024 in #❓┊help
select field display id of record in edit page
No description
18 replies
FFilament
Created by matin rajabi on 4/4/2024 in #❓┊help
disable submit button on widget form
can we prevent submit a form if there is a record in the db? the form is a widget and customize by livewire. any idea would be helpful
4 replies
FFilament
Created by matin rajabi on 4/2/2024 in #❓┊help
how to add external url in navigation
i want to add external url in my navigation sidebar. but i find a way for a specific resource. what should i do?
5 replies
FFilament
Created by matin rajabi on 4/2/2024 in #❓┊help
how to update another model instead of updating current resource?
hello i want to insert data into another model first when user edit a form. what should i do?
12 replies
FFilament
Created by matin rajabi on 3/27/2024 in #❓┊help
can not custom logout redirection
hello guys I do all steps like this blog for change redirection of logout: https://filamentphp.com/community/tim-wassenburg-how-to-customize-logout-redirect but i got an error here:
Target class [App\Http\Responses\LogoutResponse] does not exist.
does any one have any idea?
12 replies
FFilament
Created by matin rajabi on 3/14/2024 in #❓┊help
how to set url to a route out of filament panels
hello i want to create a button which is linked to main page of website. how should i set the route in url()? i tried this :
TextColumn::make('status') ->label('عملیات') ->formatStateUsing( function ($state) { return 'مشاهده'; } ) ->color('primary') ->icon('heroicon-o-eye') ->iconColor('primary') ->url( function ($record) { route('main.preview_product', ['id' => $record->id]); } ) ->openUrlInNewTab()
but it goes to edit page of this record 😐
5 replies
FFilament
Created by matin rajabi on 3/13/2024 in #❓┊help
markdowneditor not working
i have a loop and i create some markdowneditor in the loop. but they don't get any value and return null. i don't know why i have the same editor out of loop and it works well. another thing is when the markdowneditor is required i can't submit the form and it says the field is required whereas i filled the editor. any idea about this story???
3 replies
FFilament
Created by matin rajabi on 3/12/2024 in #❓┊help
SelectTree plugin filament - Trait "Filament\Forms\Components\Concerns\HasPivotData" not found
hello i have this issue. The reference of error is in selectTree plugin files. what should i do?
3 replies
FFilament
Created by matin rajabi on 3/10/2024 in #❓┊help
can i change the logic of login/register?
i want to change login user and make it with phone. how to add Mobile OTP verification in Filament registration and login?
5 replies
FFilament
Created by matin rajabi on 3/10/2024 in #❓┊help
form relation fields in edit form not filling. it's empty
hello guys how should i fill the related field in edit form?
5 replies
FFilament
Created by matin rajabi on 3/9/2024 in #❓┊help
change title of page not working
No description
5 replies
FFilament
Created by matin rajabi on 3/8/2024 in #❓┊help
how can i show table values by condition?
No description
3 replies