第7课Eloqent入门 - Paulyoufu/larvavel51 GitHub Wiki

php artisan make:model Articles 创建model php artisan tinker命令行界页 实例化类 $article=new App\Article 设置字段$article->title=“ “; 保存到数据库$article->save(); 查询记录id=1 $firs->title=‘update’;再执行$article->save(); $second=App\Article::where(“content”,”content”)->get();