/** * Get attributes. * * @param string $table * * @return \Illuminate\Http\Response */ public function getResult($table, Request $request) { $attributes = new Attribute($table); if ($request->ajax()) { return $attributes->getAttributes(); } }