PHP code example of sinnbeck / laravel-served

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

    

sinnbeck / laravel-served example snippets


$ php artisan served:up

$ php artisan served:start

$ php artisan served:stop

$ php artisan served:ssh container_name

$ php artisan served:teardown

$ php artisan vendor:publish --provider="Sinnbeck\LaravelServed\ServedServiceProvider"

'php' => [
        'version' => env('SERVED_PHP_VERSION', '7.4'),
        'modules' => [
            'pdo_mysql',
            'zip',
        ],
        'npm' => true, //enable or disable npm in build
        'xdebug' => [
            'enabled' => env('SERVED_XDEBUG_ENABLED', true),
            'port' => 9001,
        ],
    ],

$ php artisan served:xdebug enable

$ php artisan served:xdebug disable

$ php artisan served:xdebug