PHP code example of sefirosweb / laravel-odoo-connector
1. Go to this page and download the library: Download sefirosweb/laravel-odoo-connector 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/ */
sefirosweb / laravel-odoo-connector example snippets
use Sefirosweb\LaravelOdooConnector\Http\Traits\SoftDeleteOdoo;
class ProductProduct extends OdooModel
{
use SoftDeleteOdoo;
// ...
}
use Sefirosweb\LaravelOdooConnector\Http\Models\OdooModel;
class YourMainOdooModel extends OdooModel
{
protected $connection = 'other_odoo_connection';
public function getConnection()
{
return app('db')->connection('other_odoo_connection');
}
}