Learn how to integrate Dub with Laravel.
.env
file, add your Dub API key:config/services.php
file, add the following:Dub
class and pass in your API key:Dub
class via the service container, add this to the register
method of your AppServiceProvider.php
:Dub
instance throughout your application:Full list of available attributes for the Link model
dub.sh
if the workspace has no domains)./c/
, generated keys will be in the /c/:key
format). Will be ignored if
key is provided.api.dub.co/metatags
. Will be used
for Custom Social Media Cards if proxy is true.api.dub.co/metatags
. Will be
used for Custom Social Media Cards if proxy is true.api.dub.co/metatags
. Will be used
for Custom Social Media Cards if proxy is true.proxy
is true. Learn more: https://d.to/ogfalse
if not
provided. Learn more: https://d.to/noindexref
query parameter in the destination URL.externalId
field to associate the link with a unique identifier in your own system.
externalId
instead of the Dub linkId
.
linkId
or externalId
.