JellyBool

17773 经验值

你直接看对应版本的微博composer.json 文件就好了啊

额。。不太明白你的意思,不是会,是可以吧

你传入一个数据库不存在的 id 试试就知道了

findOrFail 没找到的时候会抛出 ModelNotFoundException

正常的啊,node_modules 这个目录就是这样的

你的 LessonTransformer ,use App\Lesson;

以后代码用 markdown 排版一下吧
https://www.laravist.com/discuss/markdown/learn-to-use-markdown-21

App\Lesson 这个应该是 App\Api\Lesson ,要不然就是 api 那边的 Lesson 注入命名空间错了

命名空间写对应该就好了