adrema/routes/web.php

34 lines
1.5 KiB
PHP
Raw Normal View History

2021-07-15 21:17:48 +02:00
<?php
2020-04-10 20:32:12 +02:00
2021-07-15 21:17:48 +02:00
use App\Http\Controllers\HomeController;
use App\Initialize\InitializeController;
use App\Member\MemberConfirmController;
2020-06-02 23:45:25 +02:00
use App\Member\MemberController;
2021-08-22 22:23:17 +02:00
use App\Membership\MembershipController;
2021-07-04 22:32:40 +02:00
use App\Payment\AllpaymentController;
2021-07-15 21:17:48 +02:00
use App\Payment\PaymentController;
2021-07-17 18:46:02 +02:00
use App\Payment\SendpaymentController;
2021-07-04 01:44:41 +02:00
use App\Payment\SubscriptionController;
2021-07-15 21:17:48 +02:00
use App\Pdf\MemberPdfController;
use App\Setting\Controllers\SettingController;
2020-04-12 00:26:44 +02:00
2021-07-17 18:46:02 +02:00
Route::group(['namespace' => 'App\\Http\\Controllers'], function(): void {
2020-04-12 00:26:44 +02:00
Auth::routes(['register' => false]);
});
2020-04-10 20:32:12 +02:00
2021-07-17 18:46:02 +02:00
Route::group(['middleware' => 'auth:web'], function (): void {
2020-04-12 00:26:44 +02:00
Route::get('/', HomeController::class)->name('home');
2020-06-02 22:43:40 +02:00
Route::resource('initialize', InitializeController::class);
2020-06-02 23:45:25 +02:00
Route::resource('member', MemberController::class);
2021-07-04 16:56:07 +02:00
Route::resource('member.payment', PaymentController::class);
2021-07-04 22:32:40 +02:00
Route::resource('allpayment', AllpaymentController::class);
2021-07-04 01:44:41 +02:00
Route::resource('subscription', SubscriptionController::class);
2021-06-28 22:09:41 +02:00
Route::post('/member/{member}/confirm', MemberConfirmController::class);
2021-07-16 00:12:19 +02:00
Route::get('/member/{member}/pdf', MemberPdfController::class)
->name('member.singlepdf');
2021-07-17 18:46:02 +02:00
Route::get('/sendpayment', [SendpaymentController::class, 'create'])->name('sendpayment.create');
Route::get('/sendpayment/pdf', [SendpaymentController::class, 'send'])->name('sendpayment.pdf');
2021-08-22 22:23:17 +02:00
Route::apiResource('member.membership', MembershipController::class);
Route::resource('setting', SettingController::class);
2020-04-10 20:32:12 +02:00
});