I'm try to get Auth::user()->id as my form value. It can shows on the label but it return value null.
View :
<option value="{{ Auth::user()->id }}" data-keterangan="">{{ Auth::user()->id }}</option>
Http/Livewire :
$this->validate([
'customer_code'=>'required|string',
'customer_name'=>'required|string',
'phone_number'=>'required|string'
]);
StokItem::updateOrCreate([
'customer_code'=>$this->customer_code,
'customer_name'=>$this->customer_name,
'phone_number'=>$this->phone_number
]);
Model :
protected $fillable = ['id','customer_code','customer_name','phone_number','produk_code','produk_name','produk_uom','qty','kode_kondisi_barang','jenis_kondisi_barang','remark','url_foto','status'];
