Laravel: changing from Blade to JS frontend framework

旧街凉风 提交于 2019-12-06 16:44:27

using frontend framework means you would most likely build you backend as an API, a common scenario is:

  1. a single route the points to a controller which loads the angular/vue app
  2. the angular/vue app would handle views and templates.
  3. once the app is loaded you only need to communicate with the server through the exposed api's

you can't call you js code from laravel controller and you probably won't need to.

as for your question lumen vs laravel, I think it's up to you to decide that. both have pro's con's.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!