/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Admission $admission) { if (!preg_match('/^img/', $admission->image)) { unlink($admission->image); } $admission->delete(); }