I am building an application using Laravel 5.1 and in my ER Diagram it is very deep and detailed (even with the nomenclature of indexes). I need to know how I can do to create a Foreign Key using the laravel migration methods in which I can define the name of the foreign language, maybe something like:
Schema::create('historico', function (Blueprint $table) {
$table->increments('id');
$table->dateTime('data_reg')
->default(DB::raw('CURRENT_TIMESTAMP'));
$table->integer('usuario_id');
$table->foreign('usuario_id')
->foreignName('historico$usuario_id') // <-- procuro isso aqui
->references('id')
->on('usuario')
->onDelete('CASCADE')
->onUpdate('CASCADE');
$table->string('acao', 500);
$table->longText('conteudo')->nullable();
});