*/ class TestingController extends Controller { /** * Test some software's and respond to the user * * @return \Illuminate\View\View * @throws \Exception */ public function test() { try { // Testing Database (MySQL) DB::connection()->getDatabaseName(); // Testing Cache (Redis) Cache::pull('test'); // Testing Queue (Beanstalkd) $this->dispatch(new TestingQueue()); return view('welcome'); } catch(Exception $e) { echo $e->getMessage(); } } }