代码之家  ›  专栏  ›  技术社区  ›  bmatovu Randy the Dev

如何在Laravel乐团测试台上访问模型

  •  0
  • bmatovu Randy the Dev  · 技术社区  · 7 年前

    我可以看到模型是这样创建的;

    ...\vendor\orchestra\testbench\fixture\app\Admin.php

    但当我试图在测试中使用模型时;

    \App\Admin::first();

    我得到以下错误

    Error: Class 'App\Admin' not found

    如何访问模型?

    0 回复  |  直到 7 年前