api - I want to use laravel as the app backend, but dingo cannot be installed. Please integrate the project.
迷茫
迷茫 2017-05-16 16:55:15
0
4
526

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
-

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
阿神

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?

黄舟

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

淡淡烟草味

Use composer command directly

composer require dingo/api
曾经蜡笔没有小新

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!