【发布时间】:2014-06-27 06:10:12
【问题描述】:
我有以下 laravel 结构视图
-public
--site
---app (this one shoul hold an angular app)
---views (normal php views are stored here)
--routes.php
我想创建一条到我的 Angular 应用程序的路由,该应用程序应该与 laravel restAPI 通信
我的一条正在运行的路线
Route::get('blog', array('as' => 'article.list', function()
{
return View::make('site::articles')->with('entries', Article::orderBy('created_at', 'desc')->get());
}));
但是我如何将我的 Angular 应用程序路由到应用程序子文件夹
Route::get('configurator', array('as' => configurator', function()
{
// this won't work View [app.index] not found.
//return View::make('site::app.index');
}));
【问题讨论】:
标签: angularjs laravel laravel-routing