Laravel単体の時は
$profile = Auth::user();
これで問題なかった。
vueを合わせるために
api.php→コントローラー→vueで受け取り表示
だと上記がうまくいかなくて
以下でうまくいきました。
public function index()
{
// $profile = Auth::user();
// $profile = Auth::user()->get();
// $profile = Auth::guard('api')->user()->get();
// $profile = Auth::guard('api')->user()->get();
// $profile = Auth::guard('api')->user()->get();
// →これらはユーザー情報を取得できなかった
// ⭐️これでいけた
$id = Auth::id();
$profile = User::where('id', $id)->get();
return $profile;
}