create a Order in my orderline page i get a error that the method is undefined
when i create a OrderLine and then edit it and make a Order (inside the orderline) i get this error Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save()
6 Replies
and this is my OrderLinesRelationManager
order model wich orderlinesrelationmanager is connected to
BelongsTo uses associate() https://laravel.com/docs/11.x/eloquent-relationships#updating-belongs-to-relationships
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
i still don't get it
can you post your OrderLine model?
Sorry for the late reaction, but here is my OrderLine model.