1. Go to this page and download the library: Download aaronfrancis/solo 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/ */
aaronfrancis / solo example snippets
namespace App\Providers;
use AaronFrancis\Solo\Commands\EnhancedTailCommand;
use AaronFrancis\Solo\Facades\Solo;
use Illuminate\Support\ServiceProvider;
class SoloServiceProvider extends ServiceProvider
{
public function register()
{
Solo::useTheme('dark')
// Commands that auto start.
->addCommands([
EnhancedTailCommand::make('Logs', 'tail -f -n 100 ' . storage_path('logs/laravel.log')),
'Vite' => 'npm run dev',
// 'HTTP' => 'php artisan serve',
'About' => 'php artisan solo:about'
])
// Not auto-started
->addLazyCommands([
'Queue' => 'php artisan queue:listen --tries=1',
// 'Reverb' => 'php artisan reverb:start',
// 'Pint' => 'pint --ansi',
])
// FQCNs of trusted classes that can add commands.
->allowCommandsAddedFrom([
//
]);
}
public function boot()
{
//
}
}
Solo::allowCommandsAddedFrom([
// Note that Pint doesn't actually register Solo commands, this is just an example!
\Laravel\Pint\PintServiceProvider::class,
]);
shell
php artisan solo
shell
php artisan solo:install
shell
php artisan solo
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.