PHP code example of thepublicgood / beamer
1. Go to this page and download the library: Download thepublicgood/beamer 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/ */
thepublicgood / beamer example snippets
namespace App\Http\Controllers;
use TPG\Beamer\Facades\Beamer;
class BeamerController extends Controller
{
public function __invoke(string $filename)
{
return Beamer::make($filename)->start();
}
}
Route::get('/videos/{video}', BeamerController::class);
bash
php ./artisan vendor:publish --provider="TPG\Beamer\BeamerServiceProvider"