-1

Hi i will build referral website. So every user will have their unique link. the unique id store in User table.

example: domainname.com/referral/A12CDKDDF

so the route

 Route::get('/referral/{id}', 'IndexController@referral');

but i want to make it the link more shorter like using bit.ly/ABCD or firebase ref.page.link/ABCD

i need advice which URL Shorteners api which suitable with my case? if let say currently have 1000 users and this can continue to grow up.

i read in firebase, the max request/day is 200.000/day for free plan. so its mean, i can have my short url unlimited in my table. but only 200000 click/open allow. is it my understanding correct?

thannk you for advice

sql query
  • 7
  • 1
  • Why do you need a URL shortener service when you already create a route by yourself? You can easily generate a unique 4 characters ID for all of your users. This link may help you: https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript – Hung Nguyen Jan 13 '23 at 03:26

1 Answers1

-1

You can try https://packagist.org/packages/roddy/url-shortener Laravel package with helps you to generate short urls

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 24 '23 at 07:37
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/34580273) – Yogendra Jun 26 '23 at 08:48