public function doUnpinPatientNote(Request $request) { $note = PatientNote::findOrFail($request->input('note_id')); $note->unpin(); }