I have a controller where URL::to('/') returns the base url of my website. However, when I use URL::to('/') in a job, it returns only a colon as a string (":").
class MyJob extends Job {
public function handle() {
Log::info(URL::to('/'));
}
}
This returns "http://:"
class MyController extends Controller { {
public function myMethod() {
Log::info(URL::to('/'));
}
}
This returns "http://my_domain.com"
I can't make sense of this. I am using beanstalkd for queues.
I was able to get some help on http://stackoverflow.com/questions/30735118/lumen-base-url-is-different-in-a-controller-and-a-job/30739907#30739907.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community