AmauryCid
Livewire Component Not Working
Hello, I add a livewire component consisting on a select of options. When the select changes, nothing happens (can't see a network request on devtools).
This is the livewire component:
The component renders fine, but on change nothing happens.
6 replies
Summarize Relationship aggregate
Hi, is there a way to custom summarize a relationship sum aggregate?
Something like:
This throws a:
Undefined property: Illuminate\Database\Query\Builder::$payroll_items_sum_reg_hours
How could I access the relationship in the summarizer?
5 replies
EloquentQuery Type Hinting
Hello, I have this block working fine:
/**
* @return Builder<Billing>
*/
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()
->withAuthNumber();
}
But phpstan throws this:
Call to an undefined method Illuminate\Database\Eloquent\Builder::withAuthNumber()
Method is declared on model:
@method static Builder|Billing withAuthNumber()
/**
* @param Builder<Billing> $query
* @return Builder<Billing>
*/
public function scopeWithAuthNumber(Builder $query): Builder
Someone help, please.6 replies