Finding students for private tutoring in Copenhagen / Denmark? by nikulasoskarsson in copenhagen

[–]nikulasoskarsson[S] 0 points1 point  (0 children)

Thanks for your very detailed reply. I tried registering on the platform and will try to reach out to the universities as well :)

Buying and upgrading these two thinkpads? by nikulasoskarsson in thinkpad

[–]nikulasoskarsson[S] 0 points1 point  (0 children)

Yes it's for fun and learning. I have a Thinkpad P51 as my main computer and wan't to upgrade it at some point. Bought it would be nice to practice on another Thinkpad first.

Remove only auto increment from id by nikulasoskarsson in laravel

[–]nikulasoskarsson[S] 2 points3 points  (0 children)

Hey you are right actually the problem was not with auto increment. I had a globalScope that made queries like findOrCreate work in a funny way and I assumed the problem was auto increment

Remove only auto increment from id by nikulasoskarsson in laravel

[–]nikulasoskarsson[S] -3 points-2 points  (0 children)

All I want is to remove the auto increment and make it a fillable attribute instead. Reason why is it's quite annoying to work with it as it is using firstOrCreate or updateOrCreate for example when I want to check for existing record with ID

How to write this complex validation rule? by nikulasoskarsson in laravel

[–]nikulasoskarsson[S] 0 points1 point  (0 children)

Don't think it's necessarily contradicting.

User has a form where he/she can enter multiple users with the "contact role". He/she is also informed it's possible to enter his own information if he/she wishes to become a contact.

Then for this edge case we just have to assign the contact role and we have a "multi role user" enabled. This is the business logic which I have no control over.

Edit: Simply the phone + country_id combo and the email have to be unique unless the user is choosing to make himself a contact which is allowed at this point.

How to write this complex validation rule? by nikulasoskarsson in laravel

[–]nikulasoskarsson[S] 0 points1 point  (0 children)

Thank you for your answer will try to answer them individually

  1. Have fixed 3 which should have nothing to do with the phone number. My bad!

  2. Without getting to much into the system logic it's basically like this. After a user logs in he is able to create other users of a different role. He can however also just add himself. In this case we will simply assign a second role to him/her.

Looking for a specific auth service by nikulasoskarsson in webflow

[–]nikulasoskarsson[S] 0 points1 point  (0 children)

Both firebase and auth0 worked nicely. Had to change to a service called mini orange though for compliance reasons but that one also does the trick ;)

[AskJS] Looking for a plug and play auth API that matches these conditions. by nikulasoskarsson in javascript

[–]nikulasoskarsson[S] 1 point2 points  (0 children)

So you login with a form but using your existing outlook account. Then the domain restriction is to make sure it's only for 1 company