Skip to content
Discussion options

You must be logged in to vote

Please explain why you are registering a service provider for an app-level service?
Why not directly import it inside your code?

class OblioService {
  public async generateInvoice(invoice) {}
}


const client = axios.create({
  baseURL: 'https://test.test',
})
const oblioService = new OblioService(client)
export default oblioService
import OblioInvoice from 'App/Invoicing/Oblio'

await OblioInvoice.generateInvoice(invoice)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@melokki
Comment options

Comment options

You must be logged in to vote
3 replies
@melokki
Comment options

@RomainLanz
Comment options

@melokki
Comment options

Answer selected by melokki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants