public function getData($table, $max) { if (!$max) { return \DB::connection($this->databaseName)->table($table)->get(); } return \DB::connection($this->databaseName)->table($table)->limit($max)->get(); }
/** * Get the Data * * @param string $table * @return Array * @static */ public static function getData($table, $max) { return \Orangehill\Iseed\Iseed::getData($table, $max); }