After some interest in the Laravel subreddit, I've decided to run a refactoring exercise a few times...
DrPrez said: Sorry my bad, correct way is... public static $variable = 'value'; public static fun...
You could try and define $table as a static variable. Or could use something like this: public funct...
These two pieces of code are equivalent: $viewData = array('foo' => $bar); return View::make('x',...
$table is an instance variable, not a static variable, so you can't use it in a static function (bas...
jarektkaczyk said: First off, you don't need to return anything from the scope (however you may do...
The Laravel portal for problem solving, knowledge sharing and community building.