PHP code example of czim / laravel-listify
1. Go to this page and download the library: Download czim/laravel-listify 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/ */
czim / laravel-listify example snippets
/**
* @param \Illuminate\Database\Eloquent\Builder $query
* @return \Illuminate\Database\Eloquent\Builder
*/
public function cleanListifyScopedQuery($query)
{
// Return the query builder after applying the necessary cleanup
// operations on it. In this example, a global scope ordering the
// records by their position column is disabled by using unordered()
return $query->unordered();
}