I am trying to use the public_path helper to define some standard folders in my model, but i get the following error. Is it not possible to use helper functions in the models? In the controller everything works fine.
class Varaimage extends \Eloquent {
public $sizes = array(
array('folder'=>'/large/', 'width'=>'1000'),
array('folder'=>'/thumb/', 'width'=>'150')
);
public $folder = public_path().'/images/varor/';
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'syntax error, unexpected '(', expecting ',' or ';'' in /var/www/html/kollavaran/app/models/Varaimage.php:13