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 Eloquent: Expert Level

41 lessons
1 h 34 min

Queues in Laravel 13

18 lessons
1 h 12 min read

How to Build Laravel 13 API From Scratch

30 lessons
1 h 23 min

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.