【发布时间】:2015-05-13 04:11:55
【问题描述】:
所以我使用 Laravel 4.2,我想要的是在我的一个模型中使用 external 数据库,这是我的模型代码:
<?php
class McibModel extends Eloquent {
/**
* The database table used by the model.
*
* @var string
*/
//here i should call the external database table
protected $table = 'agencies';
}
所以,如果有人有任何想法,我将非常感激。
【问题讨论】: