Shaung Bhone
Shaung Bhone
Explore posts from servers
FFilament
Created by Shaung Bhone on 3/16/2025 in #❓┊help
Spatie Media collections are not working in CategoryResource
do you have example or sth
8 replies
FFilament
Created by Shaung Bhone on 3/16/2025 in #❓┊help
Spatie Media collections are not working in CategoryResource
Thank you
8 replies
FFilament
Created by Shaung Bhone on 3/16/2025 in #❓┊help
Spatie Media collections are not working in CategoryResource
let me check
8 replies
FFilament
Created by Shaung Bhone on 3/16/2025 in #❓┊help
Spatie Media collections are not working in CategoryResource
I do not need like that. I just want to save all images to category folder. That's it. collection() allows to group files. That's not working.
8 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
Laravel Cloud automatically sets the file system to public using FILESYSTEM_DISK=public. I believe it’s using S3, so I configured S3 in the Livewire config. That’s why I need to change public to s3 in the Livewire config. It’s a bit confusing, but thank you!
13 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
Thank you for being so helpful in this chat. I got it now. I'll share how I fit.
13 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
APP_NAME="cycle-sale-service"
APP_ENV=production
APP_DEBUG=false
APP_URL="https://cycle-sale-service*****.laravel.cloud"

SESSION_DRIVER=cookie

CACHE_STORE=database
SCHEDULE_CACHE_DRIVER=database

VITE_APP_NAME="${APP_NAME}"

AWS_BUCKET=fls-9e6*****a3a-f867f809216e
AWS_DEFAULT_REGION=ap-southeast-1
AWS_ENDPOINT=https://367be*****74d0096e0cd.r2.cloudflarestorage.com
AWS_URL=https://fls-******6-aa3a-f867f809216e.laravel.cloud
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_USE_PATH_STYLE_ENDPOINT=false
APP_NAME="cycle-sale-service"
APP_ENV=production
APP_DEBUG=false
APP_URL="https://cycle-sale-service*****.laravel.cloud"

SESSION_DRIVER=cookie

CACHE_STORE=database
SCHEDULE_CACHE_DRIVER=database

VITE_APP_NAME="${APP_NAME}"

AWS_BUCKET=fls-9e6*****a3a-f867f809216e
AWS_DEFAULT_REGION=ap-southeast-1
AWS_ENDPOINT=https://367be*****74d0096e0cd.r2.cloudflarestorage.com
AWS_URL=https://fls-******6-aa3a-f867f809216e.laravel.cloud
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_USE_PATH_STYLE_ENDPOINT=false
13 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
All are the same.
13 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
I think all are the same. Let me check again.
13 replies
FFilament
Created by Shaung Bhone on 3/10/2025 in #❓┊help
Someone who has experience with Laravel Cloud Object?
I do not think so let me check.
13 replies
FFilament
Created by Shaung Bhone on 3/7/2025 in #❓┊help
Filament vite manifest not found!
Thank you
4 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
I set in here. Total amount is update without format.
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
yeah
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
here is my code. but I can't format the total_amout
->schema([
Forms\Components\Repeater::make('items')
->relationship()
// others code
Forms\Components\TextInput::make('unit_price')
->label('Unit Price')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
->inputMode('decimal')
->required()
])
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
->hiddenLabel()
->required()
->columnSpan(2),
Forms\Components\Section::make()
->hiddenLabel()
->schema([
Forms\Components\TextInput::make('total_amount')
->label('Total')
->numeric()
->inputMode('decimal')
// other code
])
])
->schema([
Forms\Components\Repeater::make('items')
->relationship()
// others code
Forms\Components\TextInput::make('unit_price')
->label('Unit Price')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
->inputMode('decimal')
->required()
])
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
->hiddenLabel()
->required()
->columnSpan(2),
Forms\Components\Section::make()
->hiddenLabel()
->schema([
Forms\Components\TextInput::make('total_amount')
->label('Total')
->numeric()
->inputMode('decimal')
// other code
])
])
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
delete live()
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
34 replies
FFilament
Created by Shaung Bhone on 2/14/2025 in #❓┊help
Value are blinking and missing in Filament Repeater
34 replies
FFilament
Created by Shaung Bhone on 2/12/2025 in #❓┊help
Number decimal formatting is not working
here is my update code
Forms\Components\Section::make('Expense Details')
/// other data
->disableOptionsWhenSelectedInSiblingRepeaterItems()
->searchable(),

Forms\Components\TextInput::make('unit_price')
->label('Unit Price')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
->inputMode('decimal')
->required()
])
->live(debounce: 600)
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
->hiddenLabel()
Forms\Components\Section::make()
->schema([
Forms\Components\TextInput::make('total_amount')
->label('Total')
->numeric()
->reactive()
->inputMode('decimal')
->readOnly()
->afterStateUpdated(
fn($state, Forms\Set $set) => $set('total_amount', number_format((float) $state, 2))
)
->required()
])->columnSpan(1)
])->columns(3),
Forms\Components\Section::make('Expense Details')
/// other data
->disableOptionsWhenSelectedInSiblingRepeaterItems()
->searchable(),

Forms\Components\TextInput::make('unit_price')
->label('Unit Price')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
->inputMode('decimal')
->required()
])
->live(debounce: 600)
->afterStateUpdated(
fn(Forms\Set $set, Forms\Get $get) =>
$set(
'total_amount',
round(collect($get('items'))
->sum(
fn($item) => (float) str_replace(
',',
'',
$item['unit_price'] ?? 0
)
), 2)
)
)
->hiddenLabel()
Forms\Components\Section::make()
->schema([
Forms\Components\TextInput::make('total_amount')
->label('Total')
->numeric()
->reactive()
->inputMode('decimal')
->readOnly()
->afterStateUpdated(
fn($state, Forms\Set $set) => $set('total_amount', number_format((float) $state, 2))
)
->required()
])->columnSpan(1)
])->columns(3),
8 replies
FFilament
Created by Shaung Bhone on 2/12/2025 in #❓┊help
Number decimal formatting is not working
Not working
8 replies