PHP code example of alkhachatryan / laravel-web-console

1. Go to this page and download the library: Download alkhachatryan/laravel-web-console 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/ */

    

alkhachatryan / laravel-web-console example snippets

 
   'Alkhachatryan\\LaravelWebConsole\\' => array($vendorDir . '/alkhachatryan/laravel-web-console/src'),
  
 
   'Alkhachatryan\\LaravelWebConsole\\' => array($vendorDir . '/alkhachatryan/laravel-web-console/src'),
  
 
  Alkhachatryan\LaravelWebConsole\LaravelWebConsoleServiceProvider::class,
  

      // Single-user credentials (REQUIRED)
      'user' => [
          'name' => env('CONSOLE_USER_NAME', 'root'),
          'password' => env('CONSOLE_USER_PASSWORD', 'root')
      ],
  

     // Disable login (don't ask for credentials, be careful)
    'no_login' => true,

use Alkhachatryan\LaravelWebConsole\LaravelWebConsole;

class HomeController extends Controller
{
    public function index() {
       return LaravelWebConsole::show();
    }
}
bash
  php artisan vendor:publish --tag=webconsole