所以我使用Laravel 4.2,我想要的是在我的一个模型中使用外部数据库,这是我的模型代码:
<?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';
}
Run Code Online (Sandbox Code Playgroud)
所以,如果有人有任何想法,我将非常感激.