PHP code example of highsolutions / eloquent-sequence
1. Go to this page and download the library: Download highsolutions/eloquent-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/ */
highsolutions / eloquent-sequence example snippets
use HighSolutions\EloquentSequence\Sequence;
class Section extends Model {
use Sequence;
public function sequence()
{
return [
'group' => 'article_id',
'fieldName' => 'seq',
];
}
}