Ejemplo n.º 1
0
 public function destroy(Update $update)
 {
     if (is_integer($update)) {
         $update = Update::find($update);
     }
     $update->delete();
     Flash::success('Update has been created Deleted!');
     return Redirect::back();
 }
Ejemplo n.º 2
0
 public function destroy($update)
 {
     $update = Update::find($update);
     $update->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }
Ejemplo n.º 3
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']));
 }