laravel/laravel — pull request #518 by joecwallace (2012-04-09 16:36:22+00:00)
Title: Eloquent Model::table() bug fix

Eloquent's ```Model::table()``` method uses PHP's ```basename()``` function to strip the namespace from the result of ```get_class($this)```, which only works on Windows. (```basename()``` on *nix systems only uses ```'/'``` for the DS.)

Happily, Laravel already has a ```class_basename()``` helper to work around that issue, so I changed ```Model::table()``` to use it.

Signed-off-by: Joe Wallace