<?php

namespace App\Http\Controllers\Admin;

use App\Pool;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class TournamentPoolController extends Controller
{
    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     *
     * @author Doran Kayoumi
     */
    public function update(Request $request, $id) {
        echo "coucou";
    }
}

<?php

namespace App\Http\Controllers\Admin;

use App\Pool;
use App\Contender;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class TournamentPoolController extends Controller
{
    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $tournament_id
     * @param  int  $pool_id
     * @return \Illuminate\Http\Response
     *
     * @author Doran Kayoumi
     */
    public function update(Request $request, $tournament_id, $pool_id) {
        // get pool, set it to finished and save changes
        $pool = Pool::find($pool_id);
        $pool->isFinished = 1;
        $pool->save();

        // find contender for the next pool with the current rank and current pool and set it with the team id
        $contender = Contender::where('pool_from_id', $pool_id)->where('rank_in_pool', $request->rank_in_pool)->firstOrFail();
        $contender->team_id = $request->team_id;
        $contender->save();
    }
}

Set pool to finished and set contenders for next pools with team ids
Set pool to finished and set contenders for next pools with team ids

