在为Controller创建文件夹后找不到模型

Symfony \ Component \ Debug \ Exception \ FatalErrorException
Class 'Controllers\Admin\User' not found

<?php namespace Controllers\Admin;
class UserStoreController extends BaseController{

Location of my Controller is app>controllers>admin>UserStoreController.php It would work well outside admin folder, but once it's in admin folder it would fail.

I also tried PSR-0 on composer.phar autoload & use app\models\user;

basically i'm just trying to use laravel's ORM but i cant because the controller is in the folder.

Any idea how i could go around this issue?

You need to update the autoloader

composer dump-autoload

As JeannotLapin said, update the composer autoloader or add the path to Laravels built-in autoloading: /app/start/global.php, method ClassLoader::addDirectories()