Eren
Eren
FFilament
Created by Eren on 4/13/2024 in #❓┊help
Select add data without leaving page
Repeater::make('product_types')
->relationship('product_types')
->schema([
Forms\Components\Select::make('product_type_id')
->label('Product Type')
->createOptionForm([
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
]) ->searchable()
->columnSpanFull(),

]),
Repeater::make('product_types')
->relationship('product_types')
->schema([
Forms\Components\Select::make('product_type_id')
->label('Product Type')
->createOptionForm([
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
]) ->searchable()
->columnSpanFull(),

]),
5 replies
FFilament
Created by Eren on 3/28/2024 in #❓┊help
These credentials do not match our records.I dont know whats happening.
I added 2 different users to check. Both of them not working. Can not login panel. It doesnt match records. How ? how it is possible 🙂 Its on production.
20 replies
FFilament
Created by Eren on 3/28/2024 in #❓┊help
Production Error
I got an error after production. Whats the problem. Didnt get it.
PHP Fatal error: Could not check compatibility between App\Models\User::canAccessPanel(App\Models\Panel $panel): bool and Filament\Models\Contracts\FilamentUser::canAccessPanel(Filament\Panel $panel): bool, because class App\Models\Panel is not available in app/Models/User.php on line 17

In User.php line 17:

Could not check compatibility between App\Models\User::canAccessPanel(App\Models\Panel $panel): bool and Filament\Models\Contracts\FilamentUser::canAccess
Panel(Filament\Panel $panel): bool, because class App\Models\Panel is not available
PHP Fatal error: Could not check compatibility between App\Models\User::canAccessPanel(App\Models\Panel $panel): bool and Filament\Models\Contracts\FilamentUser::canAccessPanel(Filament\Panel $panel): bool, because class App\Models\Panel is not available in app/Models/User.php on line 17

In User.php line 17:

Could not check compatibility between App\Models\User::canAccessPanel(App\Models\Panel $panel): bool and Filament\Models\Contracts\FilamentUser::canAccess
Panel(Filament\Panel $panel): bool, because class App\Models\Panel is not available
11 replies
FFilament
Created by Eren on 2/26/2024 in #❓┊help
Add watermark curator images.
I am using curator but couldnt add watermark. I dont understand why.
<x-curator-glider
class=""
:media="$image"
background=""
blur=""
border=""
crop=""
device-pixel-ratio=""
filter=""
fit=""
flip=""
format=""
quality=""
orientation=""
pixelate=""
sharpen=""
width=""
watermark-path="{{asset('img/watermark.png')}}"
watermark-width="200"
watermark-height="200"
watermark-x-offset="20"
watermark-y-offset="20"
watermark-padding="20"
watermark-position="top"
watermark-alpha="40"
/>
<x-curator-glider
class=""
:media="$image"
background=""
blur=""
border=""
crop=""
device-pixel-ratio=""
filter=""
fit=""
flip=""
format=""
quality=""
orientation=""
pixelate=""
sharpen=""
width=""
watermark-path="{{asset('img/watermark.png')}}"
watermark-width="200"
watermark-height="200"
watermark-x-offset="20"
watermark-y-offset="20"
watermark-padding="20"
watermark-position="top"
watermark-alpha="40"
/>
Image is working. I can see image and I can see watermark path from image payload. Everything looks okay. but watermark doesnt show.
5 replies
FFilament
Created by Eren on 5/5/2023 in #❓┊help
Json Show Value
Hello I have json column on my db. I want to show this section on my order details page.
{"name": "Afternoon Session",

"prices":
[
{"age": "12", "name": "Driver afternoon", "price": "30.00", "value": "2"}, {"age": "55", "name": "non driver", "price": "15.00", "value": null}
]
}
{"name": "Afternoon Session",

"prices":
[
{"age": "12", "name": "Driver afternoon", "price": "30.00", "value": "2"}, {"age": "55", "name": "non driver", "price": "15.00", "value": null}
]
}
What is the easiest way to show this json column in resource page ? I try to add key value but on prices another section. So. I couldnt figure it out. Please I will appriciate for an example. Thank you
5 replies
FFilament
Created by Eren on 3/22/2023 in #❓┊help
getRouteKeyName()
public function getRouteKeyName() { return 'slug'; // db column name } I have a model and using keyname but now i have problem with filament error because slug is coming from relationship for multi language system. How can i use id , instead of slug filament resource ? I dont want to remove getroutekeyname. Its necessarry for my project.
5 replies
FFilament
Created by Eren on 3/16/2023 in #❓┊help
How can i disable to create new tags with ',' I want to add TagsInput only with enter without comma?
I found the ->separator(';'), and making like this to avoid comma but it doesnt work ? Is there any way to disable totally ?
5 replies
FFilament
Created by Eren on 3/5/2023 in #❓┊help
Multiple Dynamic Path for Slug
Hi Guys , I want to bring $city->name on my slug from ID. I dont know how to achieve it. If you can help me.
Thank you. “ Forms\Components\Select::make('city_id') ->relationship('cities', 'name') ->required(), Forms\Components\TextInput::make('name') ->required() ->reactive() ->afterStateUpdated(function ($state, callable $set, callable $get){ $city = $get('city_id'); ** How can i bring $city->name instead of ID here ? ** $slug = Str::slug($state); $set('slug', $cityName . '/' . $slug); }), Forms\Components\TextInput::make('slug') ->disabled() ->required(), “
10 replies