You must prefix the class name with the global namespace prefix ''
Your new class be like :
class RSSController extends Controller
{
public function logger()
{
$rss = new \DOMDocument();
$rss->load('http://www.domain.com/feed.rss');
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community