/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // get this item $ad = Classified::find($id); if (Auth::user()->id != $ad->owner_id) { return back()->with('status', 'You cannot delete this item as you are not the owner.'); } $ad->delete(); return redirect('classifieds')->with('status', 'Listing was deleted.'); }