public function redirectToRegister(Request $request, $log) {
    $details = $request->get('details');
    $url = $request->get('url');

    if (!empty($details) && !empty($log)) {
      $details_log = ProgramSearchCheckLog::create([
        'details' => $details,
        'log_id' => $log,
        'type' => ProgramSearchCheckLog::TYPE_REGISTER,
      ]);
      $details_log->save();
    }

    if (empty($url)) {
      throw new NotFoundHttpException();
    }

    return new TrustedRedirectResponse($url, 301);
  }
public function redirectToRegister(Request $request, $log) {
    $details = $request->get('details');
    $url = $request->get('url');

    if (!empty($details) && !empty($log)) {
      $details_log = ProgramSearchCheckLog::create([
        'details' => $details,
        'log_id' => $log,
        'type' => ProgramSearchCheckLog::TYPE_REGISTER,
      ]);
      $details_log->save();
    }

    if (empty($url)) {
      throw new NotFoundHttpException();
    }

    return new TrustedRedirectResponse($url, 301);
  }
public function redirectToRegister ( Request $ request , $ log ) { $ details = $ request -> get ( 'details' ) ; $ url = $ request -> get ( 'url' ) ; if ( ! empty ( $ details ) && ! empty ( $ log ) ) { $ details_log = ProgramSearchCheckLog :: create ( [ 'details' => $ details , 'log_id' => $ log , 'type' => ProgramSearchCheckLog :: TYPE_REGISTER , ] ) ; $ details_log -> save ( ) ; } if ( empty ( $ url ) ) { throw new NotFoundHttpException ( ) ; } return new TrustedRedirectResponse ( $ url , 301 ) ; }
Redirect to register.
Redirect to register .