PHP code example of caherrera / shortio-laravel
1. Go to this page and download the library: Download caherrera/shortio-laravel 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/ */
caherrera / shortio-laravel example snippets
'Shortio' => Shortio\Laravel\Facades\Shortio::class,
use Shortio\Laravel\Facades\Shortio;
// you can alias this in config/app.php if you like
shortio::domains()->all();
// we're done here - how easy was that, it just works!
use Shortio\Laravel\Model\Link;
class Foo
{
protected $link;
public function __construct()
{
$this->link = new Link();
}
public function bar()
{
return $this->link->all();
}
}
bash
$ php artisan vendor:publish