echo_

@is_coding


Hello,
Did someone once faced a recursive error while using DI with service container in @laravelphp ? I've got a maximum call stack size reached. I have two services class that call each other



image

2

131

Laravel tries to create an instance of the first class, which tries to create an instance of the second class, which tries to create an instance of the first class and so on... That's why this is happening. Do you really need those two classes to depend on each other? (Christoph)

1

296

  • No matching results...
  • Searching...

/ 1000

Poll Options

Thanks for your reply.
Yes the dependance between the two classes was necessary at that point.

176