PHP code example of katsana / remote-control

1. Go to this page and download the library: Download katsana/remote-control 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/ */

    

katsana / remote-control example snippets


RemoteControl\Remote::verifyRoute('remote-control')->middleware('web');

RemoteControl\Remote::verifyRoute('remote-control')->middleware(['signed', 'web']);

$user = request()->user();

$recipientEmail = '[email protected]';
$content = 'Please help me';

$accessToken = RemoteControl\Remote::create($user, $recipientEmail, $content);

$accessToken->getUrl();

$accessToken->getSignedUrl();

Mail::send(new RemoteControl\Mail\GrantRemoteAccess($user, $accessToken, $content));

php artisan vendor:publish --provider="RemoteControl\RemoteServiceProvider" --tag="config"