コード例 #1
0
 public function edit(Update $update)
 {
     $updates = Update::lists("title", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $vehicles = Vehicle::lists("name", "id");
     return View::make('Middle.Web.Update.edit', compact(['update', 'updates', 'users', 'vehicles']));
 }
コード例 #2
0
 public function create()
 {
     $updates = Update::lists("title", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     return View::make('Middle.Web.Profile.create', compact(['updates', 'users']));
 }