PHP code example of antwerpfactory / laravel-lightspeed-restaurant

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

    

antwerpfactory / laravel-lightspeed-restaurant example snippets


use Lightspeedresto;

app()->lightspeedresto->core()->getCompanies(); // container

Lightspeedresto::core()->getCompanies(); // or use the facade

Lightspeedresto::core()->getCompany($companyId);

Lightspeedresto::onlineOrdering()->getCustomers();

Lightspeedresto::onlineOrdering()->updateOrderPartial($companyId, $orderId, $data);

Lightspeedresto::inventory()->addProduct($productGroupId, $data);

'providers' => [
    ...
    AntwerpFactory\LightspeedRestaurant\ServiceProvider::class,
];

'aliases' => [
	...
    'Lightspeedresto' => AntwerpFactory\LightspeedRestaurant\Facade::class,
    ...
]



return [

	/*
    |--------------------------------------------------------------------------
    | User Creditentials
    |--------------------------------------------------------------------------
    */

	'username' => env('LIGHTSPEED_RESTAURANT_USER_NAME'),

	'password' => env('LIGHTSPEED_RESTAURANT_PASSWORD'),

	'companyId' => env('LIGHTSPEED_RESTAURANT_COMPANYID'),

	'server' => env('LIGHTSPEED_RESTAURANT_SERVER'),

	'deviceId' => 'api',

];
shell
php artisan vendor:publish --provider="AntwerpFactory\LightspeedRestaurant\ServiceProvider"