Skip to main content
Back to packages
1,374 GitHub stars

ash-jc-allen/short-url

View on GitHub

Description

A Laravel package for creating shortened URLs for your web apps

The quickest way to get started with creating a shortened URL is by using the snippet below. The ->make() method returns a ShortURL model that you can grab the shortened URL from.

use AshAllenDesign\ShortURL\Classes\Builder;
 
$shortURLObject = app(Builder::class)
->destinationUrl('https://destination.com')
->make();
 
$shortURL = $shortURLObject->default_short_url;

Related Content on Laravel Daily

Video

Recent Courses on Laravel Daily