public function show($id)
 {
     $medication = Medication::find($id);
     if ($medication['user_id'] == Auth::user()['id']) {
         return view('medications.show', compact('medication'));
     } else {
         return redirect('medications');
     }
 }
 private function findById($id)
 {
     return Medication::find($id);
 }