Why can't I do this:
protected $attributes = array('name' => config('app.name'));
I get the following error:
Constant expression contains invalid operations
EDIT: I should mention that the issue occurs when I do this in an Eloquent Model. If I do the following it works fine:
protected $attributes = array('name' => 'my app');
config('app.name')?