我有laravel网络应用程序,并在离子与sqlite数据库框架实施它。如何查询关系数据库。例如,subjects->belongsToMany->students在此关系中,laravel运行两个查询(根据laravel-debug)
1. select * from "subjects"subject_id" in (1,2,3,4).students"[{id:1, name:John}, {id:2,name:Raney}]}
有人能告诉我如何从我的数据库中恢复用户的角色吗?知道我有3个表(用户、角色、User_role)迁移: public function up() Schema::create('users', function (Blueprint $table) { $table->string('name');
$table->string('email')-