Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     //
     $user = profiles::where('user_id', $id)->first();
     $person = User::where('id', $id)->first();
     return view('show.profile', compact('user', 'person'));
 }
Example #2
0
 public function show_gig($id)
 {
     //
     $dycrypt = Crypt::decrypt($id);
     //$profile=profiles::where('id',$user->id)->first();
     $gig_user = Gig::where('id', $dycrypt)->first();
     $profile = profiles::where('user_id', $gig_user->user_id)->first();
     $user = User::where('id', $gig_user->user_id)->first();
     return view('prac.gigg', compact('gig_user', 'user', 'profile'));
 }
Example #3
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $dycrypt = Crypt::decrypt($id);
     $profile = profiles::where('id', $dycrypt)->first();
     $user = User::where('id', $profile->user_id)->first();
     $gig = Gig::where('user_id', $user->id)->get();
     return view('prac.profile', compact('user', 'profile', 'gig'));
     // return $profile;
 }