/** * Remove a journey post * * @return Illuminate\Http\Response */ protected function delete($uuid) { $journey = Journey::where('uuid', '=', $uuid)->first(); if ($journey->creator->id == Auth::id()) { // The user currently authenticated user // is the creator of the post they're // trying to delete; Soft delete it Journey::destroy($journey->id); } return redirect('/journeys'); }