3
として、私は、ピボットテーブルからデータを取得しようとしました:私は、スクリーンショットを添付Pivotテーブルからデータを取得する方法は?
@foreach ($announcements as $index => $item)
{{dd($item->pivot->category->translate('en')->name)}}
{{dd($item->pivot->category->name)}}
@endforeach
:
これはあなたに役立ちますかhttp://stackoverflow.com/questions/27434338/laravel-get-pivot-data-for-specific-many-to-many-relation –
そして何が起こった? –