app/Http/Controllers/HomePageController.php
public function userPageUserUpdate(ServerRequestInterface $request): ResponseInterface
    {
        $user_id     = (int) $request->get('user_id');
        $main_blocks = (array) $request->get('main');
        $side_blocks = (array) $request->get('side');

        $this->updateUserBlocks($user_id, $main_blocks, $side_blocks);

        return redirect(route('admin-control-panel'));
    }
public function userPageUserUpdate(ServerRequestInterface $request): ResponseInterface
    {
        $user_id     = (int) $request->get('user_id');
        $main_blocks = (array) $request->get('main');
        $side_blocks = (array) $request->get('side');

        $this->updateUserBlocks($user_id, $main_blocks, $side_blocks);

        return redirect(route('admin-control-panel'));
    }
public function userPageUserUpdate ( ServerRequestInterface $ request ) : ResponseInterface { $ user_id = ( int ) $ request -> get ( 'user_id' ) ; $ main_blocks = ( array ) $ request -> get ( 'main' ) ; $ side_blocks = ( array ) $ request -> get ( 'side' ) ; $ this -> updateUserBlocks ( $ user_id , $ main_blocks , $ side_blocks ) ; return redirect ( route ( 'admin-control-panel' ) ) ; }
Save the updated blocks for another user's page.

@param ServerRequestInterface $request

@return ResponseInterface
Save the updated blocks for another user s page .