Beispiel #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $account = Account::findOrFail($id);
     $projects = array();
     foreach (Project::all() as $project) {
         $projects[$project->id] = $project->project_name;
     }
     return view('admin.accounts.edit', compact('account', 'projects'));
 }