Eth
Eth
FFilament
Created by Eth on 12/20/2023 in #❓┊help
GenericEmail not found
I see, big thanks for your help Samir
13 replies
FFilament
Created by Eth on 12/20/2023 in #❓┊help
GenericEmail not found
…no, I don’t see the documentation mentioning it What should the class include if I may ask?
13 replies
FFilament
Created by Eth on 12/16/2023 in #❓┊help
issue with pluck() on array
Indeed, wrote it this way and it worked
->options(function ($state, callable $set, callable $get) {
$place = Place::find($get('placeName'));
if ($place) {
$placeOptions = $place->options;
if ($placeOptions) {
$getPlaceOptions = collect($placeOptions)->pluck('option');
return $getPlaceOptions;
}
}
return null;
})
->options(function ($state, callable $set, callable $get) {
$place = Place::find($get('placeName'));
if ($place) {
$placeOptions = $place->options;
if ($placeOptions) {
$getPlaceOptions = collect($placeOptions)->pluck('option');
return $getPlaceOptions;
}
}
return null;
})
Thank you!
3 replies
FFilament
Created by Eth on 12/17/2023 in #❓┊help
retrieving previous record
This is it!, thank you
3 replies
FFilament
Created by Eth on 11/27/2023 in #❓┊help
showing external options
“Cannot access offset of type string on string”
14 replies
FFilament
Created by Eth on 11/27/2023 in #❓┊help
showing external options
Forms\Components\TextInput::make('placeID')
->label('Place ID')
->required()
->maxLength(50)
->live()
->afterStateUpdated(function ($state, callable $set, callable $get){
$place = $get('placeID');
$placeName = Place::find($place)->placeName;
$placePrice = Place::find($place)->placePrice;
$options = Place::find($place)->options;
$option = $options->options($state['option']);
$set('placeName', $placeName);
$set('totalPrice', $placePrice);
$set('options', $options);
}),
Forms\Components\TextInput::make('placeName')
->label('Place Name')
->disabled()
->dehydrated(false),
Forms\Components\Select::make('options')
->label('Options'),’m
Forms\Components\TextInput::make('placeID')
->label('Place ID')
->required()
->maxLength(50)
->live()
->afterStateUpdated(function ($state, callable $set, callable $get){
$place = $get('placeID');
$placeName = Place::find($place)->placeName;
$placePrice = Place::find($place)->placePrice;
$options = Place::find($place)->options;
$option = $options->options($state['option']);
$set('placeName', $placeName);
$set('totalPrice', $placePrice);
$set('options', $options);
}),
Forms\Components\TextInput::make('placeName')
->label('Place Name')
->disabled()
->dehydrated(false),
Forms\Components\Select::make('options')
->label('Options'),’m
14 replies
FFilament
Created by Eth on 11/27/2023 in #❓┊help
showing external options
No description
14 replies
FFilament
Created by Eth on 11/27/2023 in #❓┊help
showing external options
Same code above, after entering the id the user should be able to see the options (name) from options in Place class and select
14 replies
FFilament
Created by Eth on 11/27/2023 in #❓┊help
showing external options
Nope, no changes i want the user to be able of seeing the options
14 replies
FFilament
Created by Eth on 11/25/2023 in #❓┊help
how can I display a repeater in table
Yes this is what i was going for (option name rather than the price) ! Thanks 😊
3 replies
FFilament
Created by Eth on 11/21/2023 in #❓┊help
what’s the possible issue
Ikr this is why i was so confused, thought its something about XAMPP as usual….
22 replies
FFilament
Created by Eth on 11/21/2023 in #❓┊help
what’s the possible issue
Indeed, it worked after removing “&& $this->hasVerifiedEmail()”
22 replies
FFilament
Created by Eth on 11/21/2023 in #❓┊help
what’s the possible issue
No description
22 replies
FFilament
Created by Eth on 11/21/2023 in #❓┊help
what’s the possible issue
Yes
22 replies
FFilament
Created by Eth on 11/21/2023 in #❓┊help
what’s the possible issue
No description
22 replies