我正在考虑在登录其他数据集后如何进行重定向。我可以用一个收藏夹做到这一点:
///trait AuthenticatesUsers in Auth/LoginController
protected function sendLoginResponse(Request $request)
{
$request->session()->regenerate();
$this->clearLoginAttempts($request);
$products = Product::all();
return $this->authenticated($request, $this->guard()->user())
? : redirect()->intended($this->redirectPath())->with('pr', $products);
}
如何处理多个收藏夹?
答案 0 :(得分:0)
您可以随意链接fig, ax = plt.subplots(figsize=(40,29.171))
world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
world=pd.DataFrame(world)
world['LEADS']=0.1
world = world.set_index('name')
world['name']=world.index
for x, y in zip(Countries, country_counts):
world.loc[x, 'LEADS'] = y
world=geopandas.GeoDataFrame(world)
world = world[(world.index != "Antarctica")]
ax.set_axis_off()
#ax.legend(title="Leads")
world.plot(ax=ax, column='LEADS', cmap='Oranges', legend=True,linewidth = 1.5)
plt.tight_layout()
plt.savefig('plot_image.png', bbox_inches='tight', transparent=True)
方法多次:
with