/**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(Request $request)
 {
     $this->validate($request, ['firstName' => 'required', 'lastName' => 'required', 'phoneNumber' => 'required']);
     $input = $request->all();
     Member::create($input);
     return redirect()->back();
 }
 public function memberLogin(\Illuminate\Http\Request $request)
 {
     $member = Member::where('email', $request->email)->where('password', $request->password)->get();
     //return $member[0]->id;
     if (!$member->isEmpty()) {
         //$halls=Hall::where('member_id',$member[0]->id)
         $hall = Hall::where('member_id', $member[0]->id)->get();
         $hall = $hall[0];
         //dd($hall);
         return Redirect('members/settings')->with('hall', $hall);
     }
     return "Login Failed";
 }