Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

395
Vistas
How to generate unique register URL in Laravel 8.*

In my application I need register and login function. But functionality of my app requires that only some people will be able to have accounts, while I still might need to add new users.

I was thinking about 2 options.

  1. Disable register routes and generate unique, 1 time register url which I would send to my future user.
  2. Add column in users table and somehow only validated(by admin) users would be able to use app.

Since second option as consequence would require me to rebuild whole app Im wondering

Is it possible to create unique register urls?

I havent done anything yet towards solution, I dont know where to start really so I cant provide any piece of code or error

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Consider using signed URL's in Laravel:

$url = URL::signedRoute(
  'register', 
  now()->addMinutes(30)
);

Then we can modify our registration route to determine if that signed URL is valid:

public function register($request) {
  abort_unless($request->hasValidSignature(), 403, 'That link has expired or is no longer valid!');
  
  //they can register now
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda