public function states()
{
return $this->belongsToMany(
State::class, // Related model
'user_state', // Pivot table name
'user_id', // Foreign key on the pivot table (points to User)
'state_abbrev', // Foreign key on the pivot table (points to State)
'id', // Local key on the User model
'state_abbrev' // Local key on the State model
)->withPivot('state_abbrev'); // include any info from the pivot table
}