1. Go to this page and download the library: Download cybex/laravel-lodor 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/ */
php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SomeController extends Controller
{
function uploaded(Request $request, bool $success, string $uuid, array $metadata, string $errorMessage = null) {
// Do something here and handle the request returning some response, view or redirect.
}
}