郎::进入工匠命令不工作

Heyo! I'm working on a school project with Laravel 4.2 and I'm trying to create PDF report based on some data I fetch from the database. Everything works as it should but there is a problem with localization. The Lang::get() does NOT work when called form controller or view, but the PDFD.php is formatted correctly.

$result_table ="<table><tr><th>".Lang::get('PDFD.foo', array(), $loca)."</th><th>".Lang::get('PDFD.bar', array(), $loca)."</th><th>".Lang::get('PDFD.bas', array(), $loca)."</th></tr>";

The code above should generate table headers in the chosen language, but instead it returns the keys even though there should be corresponding values in the lang/en/PDFD.php file.

I'm using TCPDF to create the pdf file but I can't see how that would the cause of this porblem...

Any ideas how to fix this? And is it even possible to use localization in artisan commands?

Thanks to Ben Swinburne I realized that PDFD.php was missing the return statement from the beginning of the file. Adding the statement made the program run like a charm.

Lesson: Never assume that the problem is automatically something complex and begin debugging with the simplest possible solution.