Change default primary key in Eloquent

Yes

class User extends Eloquent {

    protected $primaryKey = 'admin_id';

}

Leave a Comment