PHP code example of awkwardideas / eloquentcomposite

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

    

awkwardideas / eloquentcomposite example snippets


AwkwardIdeas\EloquentComposite\EloquentCompositeServiceProvider::class,

use Illuminate\Database\Eloquent\Model

use AwkwardIdeas\EloquentComposite\Model;

protected $connection = '[your_connection_name_here]';
protected $table = '[your_table_name_here]';
protected $compositeKey = ['your', 'composite', 'key', 'columns'];

$this->UpdateWithComposite('column_name');