PHP code example of okami-chen / table-shard

1. Go to this page and download the library: Download okami-chen/table-shard 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/ */

    

okami-chen / table-shard example snippets


use Illuminate\Database\Eloquent\Model;

use OkamiChen\TableShard\Traits\TableShard;


class User extends Model {
    
    use TableShard;

}

User::where(['user_id'=>18])->first();