acrossoffwest/shorter

There is no license information available for the latest version (dev-master) of this package.

Generator short URL links

dev-master 2019-12-07 16:25 UTC

This package is auto-updated.

Last update: 2024-03-28 22:35:54 UTC


README

Install by composer

    composer require acrossoffwest/shorter:dev-master

Configure

Add line to config/app.php

    'providers' => [
            ...
            Acrossoffwest\Shorter\Providers\ShorterServiceProvider::class,
            ...
    
        ],

Publish Styles

    php artisan vendor:publish --tag=public

Run migrations

    php artisan migrate

Open Shorter:

    http://yourproject.com/shorter/

API Method for generate short url

Request Method: Post
Request Url: http:://yourproject.com/api/shorter/generate
Request Data: url (Validate rules: (https|http|ftp)://*.*)