PHP code example of marshmallow / actions-change-sequence

1. Go to this page and download the library: Download marshmallow/actions-change-sequence 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/ */

    

marshmallow / actions-change-sequence example snippets


public function actions(Request $request)
{
    return array_merge([
	    //
    ], SequenceActions::make());
}

public function actions(Request $request)
{
    return array_merge([
	    //
    ], SequenceActions::groupBy('invoice_id')->make());
}


SequenceActions::make('asc', 'sequence');

new SequenceFirst('desc', 'order_column');


public function actions(Request $request)
{
    return [
        new SequenceFirst,
        new SequenceLast,
        new SequencePlace,
    ];
}