简体   繁体   English

Laravel 5.2与AngularJS路由

[英]Laravel 5.2 with Angularjs route

I followed this tuturioal ( http://learninglaravel.net/laravel-52-and-angularjs-crud-with-search-and-pagination-example/link ) and it works only using: 我遵循了这个教程( http://learninglaravel.net/laravel-52-and-angularjs-crud-with-search-and-pagination-example/link ),并且仅在以下情况下有效:

php artisan serve

When I try to access by "localhost/myapp/public" I have a problem with 当我尝试通过“ localhost / myapp / public”访问时,我遇到了问题

" page not found ". “ 网页未找到 ”。

How should I write the routes to work with artisan serve and my apache server. 如何编写与artisan serve和apache服务器配合使用的路线。

您不需要遵循“ localhost / myapp / public”,只需在项目根目录下打开CMD然后运行: php artisan serve ,它将使用loacalhost运行您的应用程序:8000关注它,然后我们就可以了:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM