turkmentv/routes/web.php

36 lines
1.5 KiB
PHP
Raw Normal View History

2019-05-11 00:27:49 +00:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/test',function (){
return view('template.111platny');
});
Auth::routes();
Route::get('/', 'HomeController@index')->name('home');
2019-05-13 11:40:38 +00:00
Route::get('/search', 'HomeController@search')->name('search');
2019-05-11 00:27:49 +00:00
Route::get('/cat/{id}','HomeController@category')->name('category');
Route::get('/material/{id}','HomeController@material')->name('material');
Route::get('/material/{id}/download','HomeController@download')->name('download');
2019-05-13 11:40:38 +00:00
Route::get('/material/{id}/like','HomeController@like')->name('like');
2019-05-11 00:27:49 +00:00
Route::group(['middleware' => ['auth']], function () {
2019-05-11 07:43:39 +00:00
Route::get('/material/{id}/buy','OrderController@buy')->name('buy');
2019-05-11 00:27:49 +00:00
Route::get('/dashboard', 'HomeController@dashboard')->name('dashboard');
Route::get('/profile', 'HomeController@profile')->name('profile');
Route::post('/profile', 'HomeController@profileUpdate')->name('profileUpdate');
Route::get('/bought', 'HomeController@bought_list')->name('bought');
Route::get('/favorite', 'HomeController@like_list')->name('liked');
Route::get('/watched', 'HomeController@watch_list')->name('watched');
Route::get('/order/{id}/status', 'OrderController@result')->name('order_status');
});