classes/Observers/ManyToManyChecklist.php
public function handle($event, $payload)
    {
        list($model) = $payload;
        
        // Check for matching input elements
        foreach (Request::input() as $key => $val) {
            if (preg_match('#^'.self::PREFIX.'(.+)#', $key, $matches)) {
                $this->updateRelationship($model, $matches[1]);
            }
        }
    }
public function handle($event, $payload)
    {
        list($model) = $payload;
        
        // Check for matching input elements
        foreach (Request::input() as $key => $val) {
            if (preg_match('#^'.self::PREFIX.'(.+)#', $key, $matches)) {
                $this->updateRelationship($model, $matches[1]);
            }
        }
    }
public function handle ( $ event , $ payload ) { list ( $ model ) = $ payload ; // Check for matching input elements foreach ( Request :: input ( ) as $ key => $ val ) { if ( preg_match ( '#^' . self :: PREFIX . '(.+)#' , $ key , $ matches ) ) { $ this -> updateRelationship ( $ model , $ matches [ 1 ] ) ; } } }
Take input from a Many to Many Checklist and commit it to the db. Called
on model saved.

@param  string $event
@param  array $payload Contains:
- Bkwld\Decoy\Models\Base $model
@return void
Take input from a Many to Many Checklist and commit it to the db . Called on model saved .