因为测试没有测试数据库,所以我使用手动生成的sql脚本来清理我的生产数据库的一个数据库克隆。: Varchar(200)
id: pkoujisama_id: fk oujisamaDELETE * from ohimesama where namae not in ['Gardinelia', 'Jasmine'];
DELETE * fromohi
学习Laracasts.com上的Laravel 5.7,它展示了如何从数据库中使用雄辩的模型对象获取1:N关系记录,如下所示。// One SQL query is being executed here.$project = Project::first();
// Another SQL query must be executed here to be abled to count the tasksforeach ($project->tasks as $task)