okami-chen/table-shard

laravel table shard compents

1.0.1 2018-06-14 10:28 UTC

This package is not auto-updated.

Last update: 2022-01-22 15:13:55 UTC


README

创建

use Illuminate\Database\Eloquent\Model;

use OkamiChen\TableShard\Traits\TableShard;


class User extends Model {
    
    use TableShard;

}

查询

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