public function store(FilterRequest $request)
    {
        $this->fieldManager = $this->getFieldManager();
        $this->validate($request->request, $this->fieldManager->store());
        
        $input = $request->all();
        
        $resource = $this->repository->create($input);
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->created($resource);
    }
public function store(FilterRequest $request)
    {
        $this->fieldManager = $this->getFieldManager();
        $this->validate($request->request, $this->fieldManager->store());
        
        $input = $request->all();
        
        $resource = $this->repository->create($input);
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->created($resource);
    }
public function store ( FilterRequest $ request ) { $ this -> fieldManager = $ this -> getFieldManager ( ) ; $ this -> validate ( $ request -> request , $ this -> fieldManager -> store ( ) ) ; $ input = $ request -> all ( ) ; $ resource = $ this -> repository -> create ( $ input ) ; if ( ! $ resource ) { // return $this->notFound();
 } return $ this -> created ( $ resource ) ; }
Create and display the resource.

@return \Illuminate\Http\Response
Create and display the resource .