laravel包命名空间不使用自定义命名空间

时间:2014-12-05 05:30:35

标签: php laravel laravel-4

我正在使用一个名为Stolz的简单程序包来管理我的资产 每次我尝试在我的命名空间中使用Stolz时都会出错 主要课程

 <?php
    namespace Dashboard ;
    use View;
    use Stolz\Assets\ManagerServiceProvider ;
    class IndexController extends BaseController {

        public function Index()
        {
            $greeting = 'Welcome Here';
            return View::make('dashboard.index')->with('hello',$greeting);
        }
            public function Dashboard(){
                Assets::add('global/plugins/jquery.min.js');
                return View::make('dashboard.dashboard');
            }

    }

错误

Class 'Dashboard\Assets' not found 

0 个答案:

没有答案
相关问题