/**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     $account = new RegistrarAccount();
     $account->fill($request->all());
     $account->save();
     return $this->index();
 }
Пример #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function bulkCreate()
 {
     $dnsTemplate = new DnsTemplate();
     $accounts = new RegistrarAccount();
     return view('pages.domain.bulkcreate', ['dnsTemplates' => $dnsTemplate->getSelectArray(), 'accounts' => $accounts->getSelectArray()]);
 }