laravel模型的创建查询数据

Route::get('test3','PhotoController@test3'); //代码在PhotoController public function test3(){ $res = PhotoModel::all(); dd($res);//集合 } $res = PhotoModel::find(2); dd($res);/
相关文章
相关标签/搜索