success($urls); } public function add(Request $req){ $urls = new Url; //dd($req["name"]); $urls->host="www"; $urls->url="www.baidu.com"; $urls->save(); return $this->success($urls); } }