/** * @return all tests(polls) */ public function getAllTests() { $tests = Test::allowed()->get(); return $tests; }