简体   繁体   English

Laravel TicketIt 路由问题

[英]Laravel TicketIt routing issue

I am using TicketIt for my Laravel 5.2 ticket system.我正在将TicketIt用于我的 Laravel 5.2 票务系统。

I've installed it and everything works fine however the current route for the ticket homepage is set to /tickets .我已经安装了它并且一切正常,但是票务主页的当前路线设置为/tickets

I want my Laravel app to automatically redirect to /tickets on the homepage.我希望我的 Laravel 应用程序自动重定向到主页上的/tickets So whenever / is requested it should redirect to /tickets .所以每当/被请求时,它应该重定向到/tickets

As all of the source code for TicketIt is stored in /vendor/kordy/ticketit/src so I'm not sure how to do this.由于 TicketIt 的所有源代码都存储在/vendor/kordy/ticketit/src所以我不确定如何执行此操作。 Any ideas?有任何想法吗?

My routes file:我的路线文件:

Route::group(['middleware' => 'auth'], function () {

    Route::get('/', function () {
        return view('welcome');
    });
});


Route::auth();

Route::get('/home', 'HomeController@index');

A simple redirect on the homepage to /tickets主页上一个简单的重定向到/tickets

Route::get('/', function () {
    return redirect('/tickets');
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM