Beispiel #1
0
 public function store(Request $request)
 {
     $data = $request->all();
     $website = $this->websitesService->add($data);
     return $this->jsonResponse($website);
 }
Beispiel #2
0
 /**
  * @test
  * @group websitesservice
  */
 public function should_require_valid_data()
 {
     $this->setExpectedException('Bakgat\\Notos\\Exceptions\\UnprocessableEntityException');
     $data = [];
     $this->websitesService->add($data);
 }