Error lengkapnya

LogicException in Model.php line 2702: Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation

Relationship method must return an object of type Illuminate

Solusi

Ubah save menjadi save(), contoh

$po = Po::find($request->po_id);
$po->status = 'Dikirim';
$po->save;

menjadi

$po = Po::find($request->po_id);
$po->status = 'Dikirim';
$po->save();

Leave a comment

Your email address will not be published. Required fields are marked *