/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (Developer::got_property($id) == false) { $this->developer->find($id)->delete(); } return Redirect::route('admin.developers.index'); }
public function getDevelopers() { $developers = Developer::find(); return $developers->toArray(); }