public function resolve($type, $id)
    {
        $instance = (new $type)->find($id);

        if ($instance) {
            return $instance;
        }

        throw new EntityNotFoundException($type, $id);
    }
public function resolve($type, $id)
    {
        $instance = (new $type)->find($id);

        if ($instance) {
            return $instance;
        }

        throw new EntityNotFoundException($type, $id);
    }
public function resolve ( $ type , $ id ) { $ instance = ( new $ type ) -> find ( $ id ) ; if ( $ instance ) { return $ instance ; } throw new EntityNotFoundException ( $ type , $ id ) ; }
Resolve the entity for the given ID.

@param  string  $type
@param  mixed  $id
@return mixed

@throws \Illuminate\Contracts\Queue\EntityNotFoundException
Resolve the entity for the given ID .