Domanda

I have the following laravel structure on view

-public
--site
---app (this one shoul hold an angular app)
---views (normal php views are stored here)
--routes.php

than I would like to create a route to my angular app which should communicate with the laravel restAPI

one of my route which is working

Route::get('blog', array('as' => 'article.list', function()
{
    return View::make('site::articles')->with('entries', Article::orderBy('created_at', 'desc')->get());
}));

but How would I route my angular app to app subfolder

Route::get('configurator', array('as' => configurator', function()
{
    // this won't work View [app.index] not found. 
    //return View::make('site::app.index');
}));
È stato utile?

Soluzione

You should create a laravel view and then inside this view call your angular routes.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top