I get the following error message with the following code:
Unable to resolve dependency [Parameter #0 [ $name ]] in class App\Http\Livewire\AdvertismentStep2
public $name, $value;
public function updated($name, $value) {
DB::table('advertisments')
->where('id', '=', 48)
->update([
$name => $value,
]);
}
<div>
<label for="brutto">{{ __('words.brutto') }} (EUR)</label>
<input class="form-control" id="brutto" wire:model.lazy="brutto" type="number" name="brutto" placeholder="{{ __('words.euro') }}" required="required"/>
</div>
what does that mean ?