matin rajabi
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
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 do14 replies
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
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
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
struggle with select field =_=
i create a Select then for its option
i have a model which has this relation:
public function filter(): BelongsTo
{
return $this->belongsTo(Filter::class, 'filters_id');
}
and in Filter::class i have another relation:
public function subfilters(): HasMany
{
return $this->hasMany(FilterDetail::class);
}
and i want that the options will be FilterDetail::class rows
what should i do?15 replies