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

Laravel 13 Starter Kit Teams and Customizations

10 lessons
33 min

Testing in Laravel 13 For Beginners

26 lessons
1 h 41 min read

Laravel 13 Eloquent: Expert Level

41 lessons
1 h 34 min