📜  Laravel 模型检索 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:20.090000             🧑  作者: Mango

代码示例1
use App\Models\Flight;

foreach (Flight::all() as $flight) {
    echo $flight->name;
}