I try to create a function within a controller but the function does not work if I use a capital letter in my function name. if I keep everything lowercase then he just does it. Is this correct or is this a bug? This is not how i am going to add my code it is just for explanation.
Dont work
app/controllers/page.pgp
public function textBlock()
{
return (object) array(
'title' => 'test'
);
}
page.blade.php
{{ $textBlock->title }}
Works
app/controllers/page.pgp
public function textblock()
{
return (object) array(
'title' => 'test'
);
}
page.blade.php
{{ $textblock->title }}