PHP code example of ibrahimbougaoua / filament-sort-order
1. Go to this page and download the library: Download ibrahimbougaoua/filament-sort-order 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/ */
ibrahimbougaoua / filament-sort-order example snippets
return [
/** Add the tables to be migrated */
'tables' => [
'users',
],
/* The column name to be used for sorting */
'sort_column_name' => 'sort_column',
/* Sort Order asc or desc */
'sort' => 'asc',
];
bash
php artisan vendor:publish --tag="filament-sort-order-migrations"
php artisan migrate