1

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');
}));

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

yepp that's how I made, but the question is if is a reliable way to do or not?
Yes it is. Check these tutorials for more details: scotch.io/tutorials/javascript/… scotch.io/tutorials/php/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.