コード例 #1
0
 /**
  * Handle the event.
  *
  * @param  NewMember  $event
  * @return void
  */
 public function handle(NewMember $event)
 {
     PrintList::create(['member_id' => $event->member->id]);
 }
コード例 #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $inputs = Request::all();
     $id_card = PrintList::create(['member_id' => $inputs['member_id']]);
     if ($id_card) {
         flash()->success('Member added to Print List.');
         return redirect()->back();
     }
     flash()->error('There was an error adding member to Print List. Please try again.');
     return redirect()->back();
 }