In a Laravel 4 application, is it possible to create a controller in namespace called Public
? Like this:
<?php namespace Public;
class MyController extends \BaseController {
}
Doing this gives me an error:
syntax error, unexpected 'Public' (T_PUBLIC), expecting identifier (T_STRING) or \ (T_NS_SEPARATOR) or '{'
However, if I change the namespace to PublicControllers
, it works fine. Does that means Public
is a reserved word that can't be used as a namespace?