1. Go to this page and download the library: Download philo/artisan-remote 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/ */
philo / artisan-remote example snippets
return [
'commands' => [
\Illuminate\Foundation\Console\UpCommand::class,
\Illuminate\Foundation\Console\DownCommand::class,
\Illuminate\Cache\Console\ClearCommand::class,
],
'auth' => [
// This API token will be able to access only the up and down command.
'79e9ab08-bdc0-4bef-8af2-5e5b5579f9af' => [
\Illuminate\Foundation\Console\UpCommand::class,
\Illuminate\Foundation\Console\DownCommand::class,
],
// This API token will be able to access the up, down and cache:clear command.
'3c562cb3-62ba-4fe4-9875-528ecae6e8b4' => ['*'],
],
'route_prefix' => 'artisan-remote',
];
// app/Http/Middleware/CheckForMaintenanceMode.php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware;
class CheckForMaintenanceMode extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array
*/
protected $except = [
'artisan-remote/*'
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.