How to map exting table to a model in laravel
Solution 1:
Change it to:
class Casa extends Model{
protected $table = 'casa';
protected $primaryKey = 'casa_id';
protected $connection = 'eloquent_db';
public $timestamps = false;
}
$casa = \App\Casa::find($id);