Beispiel #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     if (Auth::user()->hasRole('member')) {
         $id = Company::where('comUserId', '=', Auth::user()->id)->first()->comId;
     }
     $company = Company::findOrFail($id);
     $members = Role::getMembers('member');
     return view('company.edit', compact('company', 'members'));
 }