web.php 786 B

1234567891011121314151617181920212223
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use \Illuminate\Support\Facades\Auth;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. Route::get('/order/{product_id}', [App\Http\Controllers\HomeController::class, 'order'])->name('order');
  15. Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('root');
  16. Route::post('/order_send', [App\Http\Controllers\HomeController::class, 'order_send'])->name('order_send');
  17. Auth::routes();