Commit 94fddca5 authored by Mahmoud Zalt's avatar Mahmoud Zalt

remove the Beanstalkd testing code from Laravel

parent d96bf4b1
......@@ -32,10 +32,8 @@ class TestingController extends Controller
// Testing Cache (Redis)
Cache::pull('test');
// Testing Queue (Beanstalkd)
$this->dispatch(new TestingQueue());
return view('welcome');
} catch(Exception $e) {
echo $e->getMessage();
}
......
<?php
namespace App\Jobs;
use App\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
class TestingQueue extends Job implements SelfHandling, ShouldQueue
{
use InteractsWithQueue, SerializesModels;
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
return true;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment