I tried to run my hello_worker.php but it doesn't seem to be detecting the database. I'm using Laravel 4.
This is my code in Iron.io:
<?php
// Worker code can be anything you want.
// echo "Hello!";
// print_r(getPayload());
// Simulating hard work for 5 seconds...
// sleep(5);
DB::table('test')->insert( array('content' => 'every one minute') );
// When you're ready press 'Run code ...'
This is the error that i received in my email.
Message: Occurred during run: PHP Fatal error: Class ‘DB’ not found in /mnt/task/hello_worker.php on line 9
The API that im integrating http://www.iron.io/