Example #1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $agendaItem = new AgendaItem();
     $agendaItem->body = 'Should the PR committee get PR branded SSE swag?';
     $agendaItem->group_id = 1;
     $agendaItem->save();
 }
Example #2
0
 /**
  * Remove the specified agenda item from storage.
  *
  * @Delete("/{id}")
  * @Response(204)
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     AgendaItem::destroy($id);
     return response('', Response::HTTP_NO_CONTENT);
 }