name('home'); Route::get('/user','UserController@action'); Route::get('/user/{id}', 'UserController@show')->where('id', '[0-9]+')->name('user.position'); Route::get('/user/{id}/{date}', 'UserController@userdata')->where(['id'=>'[0-9]+','date'=>'[0-9]{4}-[0-9]{2}-[0-9]{2}'])->name('user.date'); Route::get('/user/{id}/last', 'UserController@showLast')->where('id', '[0-9]+')->name('last.position'); //Route::post('/tbot/'.Telegram::getAccessToken(), function(){ // Telegram::commandsHandler(true); //}); Route::post('/tbot/'.Telegram::getAccessToken(), 'Telegram@locations'); //Route::post(Telegram::getAccessToken(), function () { // Telegram::commandsHandler(true); //});