大家好,我是PHP和Laravel的新手,我的问题是如何使用eloquent来完成整个工作。我的意思是,当我创建一个模型类并使用它进行迁移时,我可以像使用Model->title = "value";一样使用它。能言善辩的模型是如何确定表结构并在类中创建成员变量的。class Post extends Model public function author()
我有这个从数据库中查找学生数据的代码: public function edit($id) $student = Students::find($id);view('pages.forms.editstudent')->with(['studentdata'=>$student,'stid'=>$id]); //,'f'=>$facs
} 这是我从查询中得到<