包含子域的以前的URL

时间:2017-02-22 15:20:13

标签: laravel laravel-5

我有子域I = imread('3.png'); % read image Ir=I(:,:,1); % read red channel Ig=I(:,:,2); % read green channel Ib=I(:,:,3); % read blue channel R_total= 0; G_total= 0; B_total= 0; R_total = sum(Ir(:)); G_total = sum(Ig(:)); B_total = sum(Ib(:)); disp (R_total) disp (G_total) disp (B_total) %% Calculate the image total intensity I_total = R_total + G_total + B_total; disp( I_total) %% Calculate the percentage of each Channel R_precentag = R_total / I_total * 100 ; %% Red Channel Percentage G_precentag = G_total / I_total * 100 ; %% Green Channel Percentage B_precentag = B_total / I_total * 100 ; 。控制器有代码:

account.asu.dev

此构造将用户定向到登录页面。问题是_previous需要public function __construct() { $this->middleware('auth'); } 值,但应该auth.asu.dev。出于这个原因,用户被带到主页面,但必须返回到子域。如何解决?

Laravel 5.4

1 个答案:

答案 0 :(得分:1)

如果您手动登录用户,则可以在登录结束时进行

return redirect()->intended('home'); 

这会将它们重定向到他们去的地方或仅仅是主页。或者只需将home替换为您希望他们在登录后运行的任何页面。