PHP code example of codewithkyrian / laravel_position
1. Go to this page and download the library: Download codewithkyrian/laravel_position 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/ */
codewithkyrian / laravel_position example snippets
return [
/**
* The default key to use when adding the position to each item
* in the collection. It could still be overridden when calling
* method by passing a string as the second argument.
*/
'key' => 'position',
/**
* Whether to show the total number of items in the collection
* in the position text eg. 12th out of 30
*/
'show_total' => false,
/**
* The text to join the position and the total number of items
* in the collection
*/
'join_text' => 'out of'
];