src/Traits/ApiActions.php
public function show($id, FilterRequest $request)
    {
        $id = $this->getRealId($id);
        
        $request->criteria[] = 'id,=,' . $id;
        
        $resource = $this->repository->filter($request)->first();
        
        //$resource = $this->repository->find($id);
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
public function show($id, FilterRequest $request)
    {
        $id = $this->getRealId($id);
        
        $request->criteria[] = 'id,=,' . $id;
        
        $resource = $this->repository->filter($request)->first();
        
        //$resource = $this->repository->find($id);
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
public function show ( $ id , FilterRequest $ request ) { $ id = $ this -> getRealId ( $ id ) ; $ request -> criteria [ ] = 'id,=,' . $ id ; $ resource = $ this -> repository -> filter ( $ request ) -> first ( ) ; //$resource = $this->repository->find($id);
 if ( ! $ resource ) { // return $this->notFound();
 } return $ this -> success ( $ resource ) ; }
Display one resource by id.

@return \Illuminate\Http\Response
Display one resource by id .