schwartzmj
Explore posts from serversCatching unique constraint violations and returning the field(s) violating it in a "service" class
Thanks — I saw this while I was searching around but I'm hesitant to add libraries without understanding all my options, but I'll look more into it
36 replies
Catching unique constraint violations and returning the field(s) violating it in a "service" class
So basically, do a check on the slug and return a helpful error if it is taken.
If the unlikely scenario happens where its taken right after the check, then just return a generic exception since it will probably never happen anyway
36 replies
Subdomain / Domain based routing w/ Multitenancy. 419 Page Expired
or, i guess, rethink my app requirements and simplify it. dont allow a user to belong to multiple tenants etc 🤷♂️ . seems like i dont have a good enough grasp on the moving pieces here
12 replies
Subdomain / Domain based routing w/ Multitenancy. 419 Page Expired
im actually getting a bit confused here. SESSION_DRIVER set to file seems to work now? (instead of database)
i do get odd issues though like trying to login at the root domain is successful but then redirects you to the default tenant where you have to login again
12 replies