PHP code example of novius / laravel-artisan-streamed

1. Go to this page and download the library: Download novius/laravel-artisan-streamed 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/ */

    

novius / laravel-artisan-streamed example snippets


// App\Console\Kernel.php

protected function schedule(Schedule $schedule): void
{
    $schedule->command('model:prune', [
        '--model' => [Novius\LaravelArtisanStreamed\Models\LaunchedCommand::class],
    ])->daily();
}
sh
php artisan vendor:publish --provider="Novius\LaravelArtisanStreamed\ArtisanStreamedServiceProvider" --tag="config"
sh
php artisan vendor:publish --provider="Novius\LaravelArtisanStreamed\ArtisanStreamedServiceProvider" --tag="views"
shell
php artisan model:prune --model="Novius\\LaravelArtisanStreamed\\Models\\LaunchedCommand"