3

私はVentureCraft/revisionable -package を使用しており、リビジョンのあるモデルのリビジョンを表示する方法を ReadMe に示しています。

@foreach($account->revisionHistory as $history )
    <li> 
         {{ $history->userResponsible()->first_name }} 
         changed {{ $history->fieldName() }} 
         from {{ $history->oldValue() }} 
         to {{ $history->newValue() }}
    </li>
@endforeach

しかし、特定のユーザーによって行われたすべてのリビジョンのリストが必要です。それを達成する方法は?そのため、特定のユーザーが行った改訂履歴を表示できます。

4

2 に答える 2