Answer the question
In order to leave comments, you need to log in
How to use Explain in Eloquent?
Good afternoon,
I figured out how to add an index to a table in eloquent, for example, for the user_id field
Capsule::schema()->create('just', function($table){
$table->increments('id');
$table->integer('user_id');
$table->index('user_id');
$table->timestamps();
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question