我有一个页面home.blade.php
。这个页面中有一个href标记,它重定向到另一个页面login.blade.php
。
<a href="{{URL::to('login')}}">Login</a>.Any simple method to return to that page directly from this href tag?
试试这个:
您可以通过Route::get在任何刀片模板上重定向,而无需使用控制器。
在路由web.php中
Route::get('/login', function(){
return view('login'); // Your Blade template name
});