PHP code example of xorth / gotourl
1. Go to this page and download the library: Download xorth/gotourl 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/ */
xorth / gotourl example snippets
'providers' => [
Xorth\GoToUrl\GoToUrlServiceProvider::class,
];
'aliases' => [
'Go' => \Go::class,
];
public function create()
{
go()->after(); // Get the full url through $request->fullUrl()
// do more stuff
}
public function save()
{
// do something
return go()->now();
}