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.
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
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
}