search

Home  >  Q&A  >  body text

api - I want to use laravel as the app backend, but dingo cannot be installed. Please integrate the project.

Like the title

Use laravel to make an api interface. I have read many articles, but none of them are complete. Novices have no way to start.
-
Please give advice from experts
-

迷茫迷茫2872 days ago601

reply all(4)I'll reply

  • 阿神

    阿神2017-05-16 16:57:15

    Laravel was a little more troublesome in the early stage. The Chinese information was relatively scattered (including the official English document - -) and I couldn't understand it at first. .

    If you don’t know how to install django, just pull it down - you can’t even install it, let alone develop it.

    The web api interface is to originally open a web page and return text/html and then display the content. Using the api is to return application/json and then display the content. The main difference is this. It depends on LZ’s business needs. Use whichever one is suitable. It doesn’t matter if it’s a framework or not, why do you have to go through all the trouble of installing Laravel and Django?

    reply
    0
  • 黄舟

    黄舟2017-05-16 16:57:15

    Come on, I have recorded a laravel RESTful API series. If you are interested, you can take a look

    https://laravist.com/series/pe-into-restful-api-with-laravel

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:57:15

    Use composer command directly

    composer require dingo/api

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:57:15

    If you use php, if you don’t use a framework, how do you handle routing, how do you write a database, and how do you ensure that the website is not attacked by CSRF. Directly writing bare *.php files has faster performance, but how can we ensure fast development speed? Many people start their first project with a framework.

    The best framework for python is flask? tornado? bottle? diango?

    The best web framework for php is: laravel? slim framework? ci?

    What is the correct answer?

    reply
    0
  • Cancelreply