pietertje
530
10
General

L5 with angularjs, routing problems

Posted 4 years ago by pietertje

Hi,

I'm following this tutorial on using both angularjs and laravel: http://angular-tips.com/blog/2014/10/working-with-a-laravel-4-plus-angular-application/. I'm having problems, though. According to the tutorial Is should add:

App::missing(function($exception)
{
    return File::get(public_path() . '/angular.html');
});

To my routes.php, so that laravel will serve up the angularjs page. Only this doesn't work in L5. So I tried instead:

app('exception')->missing(function($exception)
{
    return File::get(public_path() . '/angular.html');
});

...But that also doesn't work. Does anyone have any idea on what could work?

Please sign in or create an account to participate in this conversation.