PHP code example of bradietilley / laravel-shortify

1. Go to this page and download the library: Download bradietilley/laravel-shortify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bradietilley / laravel-shortify example snippets


use BradieTilley\Shortify\Shortify;

$short = Shortify::url('https://example.com/very/long/path');

echo $short->url; // https://your-app.test/s/Ws4BYCVLDDDh
bash
php artisan vendor:publish --tag="shortify-config"
php artisan vendor:publish --tag="shortify-migrations"
php artisan migrate