Viewing File: /home/ubuntu/shop-website-base/routes/user.php

<?php

Route::get('/', 'User\UserController@index')->name('index');

Route::get('pages', 'User\LookupController@static_pages')->name('pages');

Route::post('add_to_cart', 'User\ProductController@add_to_cart')->name('products.add_to_cart');

Route::get('cart_checkout', 'User\LookupController@cart_checkout')->name('cart_checkout');

Route::post('direct_checkout_save', 'User\LookupController@direct_checkout_save')->name('direct_checkout_save');

Route::get('remove_from_cart', 'User\ProductController@products_cart_remove')->name('remove_from_cart');

Route::get('product/{unique_id?}', 'User\ProductController@products_view')->name('products.view');

Route::any('products_list', 'User\ProductController@products_list')->name('products_list');

Route::get('categories', 'User\ProductController@categories')->name('products.categories');

Route::post('contact_request', 'User\LookupController@contact_request')->name('contact_request');



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

    Route::group(['as' => 'user.'], function(){

        Route::get('clear-cache', function() {

            $exitCode = Artisan::call('config:cache');

            return back();

        })->name('clear-cache');


        Route::get('login', 'User\LoginController@showLoginForm')->name('login');

        Route::post('login', 'User\LoginController@login')->name('login.post');

        Route::get('logout', 'User\LoginController@logout')->name('logout');

        Route::get('forgot_password', 'User\LoginController@forgot_password')->name('forgot_password');

        Route::post('forgot_password_update', 'User\LoginController@forgot_password_update')->name('forgot_password.update');

        Route::get('reset_password', 'User\LoginController@reset_password')->name('reset_password');

        Route::post('reset_password_update', 'User\LoginController@reset_password_update')->name('reset_password.update');

        Route::get('email/verify','User\LoginController@verifyEmail')->name('email.verify');


        Route::get('/', 'User\UserController@index')->name('index');

        Route::get('register', 'Auth\UserRegisterController@showRegisterForm')->name('register');

        Route::post('register', 'Auth\UserRegisterController@register')->name('register.post');

        Route::get('profile', 'User\UserController@profile')->name('profile');

        Route::post('profile_save', 'User\UserController@profile_save')->name('profile.save');

        Route::get('password', 'User\UserController@change_password')->name('password');

        Route::post('password_save', 'User\UserController@password_save')->name('password.save');

        Route::get('delete_account', 'User\UserController@delete_account')->name('delete.account');

        Route::post('delete_account_process', 'User\UserController@delete_account_process')->name('delete.account.post');

        Route::get('orders', 'User\UserController@orders')->name('orders');

        Route::get('wishlist', 'User\UserController@wishlist')->name('wishlist');

        Route::get('product_wishlist/delete', 'User\UserController@product_wishlist_delete')->name('product_wishlist.delete');


        Route::get('billing_address', 'User\UserController@billing_address')->name('billing_address');

        Route::get('products', 'User\ProductController@products')->name('products.index');

        Route::get('featured_products', 'User\ProductController@featured_products')->name('products.featured_products');

        Route::post('add_to_wishlist', 'User\ProductController@add_to_wishlist')->name('products.add_to_wishlist');

        Route::get('remove_from_wishlist', 'User\ProductController@products.remove_from_wishlist')->name('remove_from_wishlist');

        Route::get('my_cart', 'User\ProductController@my_cart')->name('my_cart');

        Route::post('billing_address_save', 'User\UserController@billing_address_save')->name('billing_address.save');

        Route::get('billing_address/delete', 'User\UserController@billing_address_delete')->name('billing_address.delete');

        Route::get('checkout', 'User\ProductController@cart_checkout')->name('cart_checkout');

        Route::post('checkout_save', 'User\ProductController@carts_checkout_save')->name('checkout.save');

        Route::get('billing_details', 'User\ProductController@billing_details')->name('orders.billing_details');

        Route::get('orders_cancel', 'User\UserController@orders_cancel')->name('orders_cancel');

    });

});
Back to Directory File Manager