public function selectdraftbyid($id) { $drafts = drafts::where('id', '=', $id)->get(); if ($drafts) { return $drafts[0]; } }