Laravel and Angularjs error

#1
[2019-06-28 10:06:43] local.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException in D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:179
Stack trace:
#0 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Router.php(546): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Router.php(525): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Router.php(511): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#5 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#6 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#7 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#8 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#9 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#10 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#11 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#14 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#15 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 D:\xampp\htdocs\laravel-5.8\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 D:\xampp\htdocs\laravel-5.8\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 D:\xampp\htdocs\laravel-5.8\server.php(21): require_once('D:\\xampp\\htdocs...')
#22 {main}  

This is the error that I am getting in the laravel.log file. I am trying to fetch data using angularjs but whenever I am trying to route its showing Page not found error and in the backend this is what I am getting. Can anyone help me with this.

#2

Did you set the route up?

Side note, why are you using angularJS and not a newer version?

#3

Yes I have used route. I am using newer version itself AngularJs 1.7.8.

#4

Angular isn’t even called AngularJS and hasn’t been since version 1, considering it is on version 8, you are not using the a newer version at all. Angular 2 changed a lot of things to make the framework far more resilient.

#5

Thank you for guidance.