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

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

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

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

        return redirect(route('admin-control-panel'));
    }
public function userPageDefaultUpdate ( ServerRequestInterface $ request ) : ResponseInterface { $ main_blocks = ( array ) $ request -> get ( 'main' ) ; $ side_blocks = ( array ) $ request -> get ( 'side' ) ; $ this -> updateUserBlocks ( - 1 , $ main_blocks , $ side_blocks ) ; return redirect ( route ( 'admin-control-panel' ) ) ; }
Save the updated default blocks for new users.

@param ServerRequestInterface $request

@return ResponseInterface
Save the updated default blocks for new users .