3

I never had this happen before, but here we go:

Enter image description here

Any ideas?

  • Running php-fpm 5.3
  • Ubuntu 12.04 (Precise Pangolin)

It looks as if the comment is NOT working...

4

1 回答 1

7

Using [] as arrays like that only works with PHP 5.4 and up.

See PHP: Arrays

You'll have to use old array syntax for PHP 5.3.

This will work:

Route::get('/', array('as' => 'default.index', 'uses' => 'DefaultController@index'));
于 2013-10-06T08:36:00.310 回答