It's because your PHP
version doesn't support []
array syntax, try:
$var = Model::create(array(
'title' => Input::get('title'),
'description' => Input::get('description')
));
It is not supported in PHP < 5.4
. Upgrade your PHP
version or use array()
instead of []
.