app/Http/Controllers/PendingChangesController.php
public function rejectAllChanges(ServerRequestInterface $request, Tree $tree): ResponseInterface
    {
        $url = $request->get('url', '');

        DB::table('change')
            ->where('gedcom_id', '=', $tree->id())
            ->where('status', '=', 'pending')
            ->update(['status' => 'rejected']);

        return redirect(route('show-pending', [
            'ged' => $tree->name(),
            'url' => $url,
        ]));
    }
public function rejectAllChanges(ServerRequestInterface $request, Tree $tree): ResponseInterface
    {
        $url = $request->get('url', '');

        DB::table('change')
            ->where('gedcom_id', '=', $tree->id())
            ->where('status', '=', 'pending')
            ->update(['status' => 'rejected']);

        return redirect(route('show-pending', [
            'ged' => $tree->name(),
            'url' => $url,
        ]));
    }
public function rejectAllChanges ( ServerRequestInterface $ request , Tree $ tree ) : ResponseInterface { $ url = $ request -> get ( 'url' , '' ) ; DB :: table ( 'change' ) -> where ( 'gedcom_id' , '=' , $ tree -> id ( ) ) -> where ( 'status' , '=' , 'pending' ) -> update ( [ 'status' => 'rejected' ] ) ; return redirect ( route ( 'show-pending' , [ 'ged' => $ tree -> name ( ) , 'url' => $ url , ] ) ) ; }
Reject all changes to a tree.

@param ServerRequestInterface $request
@param Tree                   $tree

@return ResponseInterface
Reject all changes to a tree .