The SQL generated by hasOne is actually select * from phones where user_id = 1 limit 1 The limit 1...
public function edit($id) { return $this->show($id); } You need to return the value.
The Laravel portal for problem solving, knowledge sharing and community building.
The community