-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathweb.php
62 lines (51 loc) · 2.35 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
use App\Http\Controllers\PaymentMethodController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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('/', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::group([
'prefix' => 'campaigns',
'as' => 'campaigns.',
], function () {
Route::get('/', [\App\Http\Controllers\CampaignController::class, 'index'])->name('index');
Route::get('/{slug}', [\App\Http\Controllers\CampaignController::class, 'show'])->name('show');
Route::get('/{slug}/transactions/create', [\App\Http\Controllers\CampaignTransactionController::class, 'create'])->name('transactions.create');
Route::post('/{slug}/transaction', [\App\Http\Controllers\CampaignTransactionController::class, 'store'])->name('transactions.store');
});
Route::get('/transactions/{code}', [\App\Http\Controllers\TransactionController::class, 'show'])->name('transactions.show');
Route::controller(PaymentMethodController::class)->group(function () {
Route::get('/payment-methods', 'getPaymentMethod')->name('payment-methods.index');
});
Route::middleware(['auth'])
->group(function () {
Route::group([
'prefix' => 'profile',
'as' => 'profile.',
], function () {
Route::get('/', [\App\Http\Controllers\ProfileController::class, 'edit'])->name('edit');
Route::put('/', [\App\Http\Controllers\ProfileController::class, 'update'])->name('update');
});
Route::group([
'prefix' => 'my-transactions',
'as' => 'my-transactions.',
], function () {
Route::get('/', [\App\Http\Controllers\MyTransactionController::class, 'index'])->name('index');
});
});
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth'])->name('dashboard');
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
\UniSharp\LaravelFilemanager\Lfm::routes();
});
require __DIR__ . '/auth.php';
require __DIR__ . '/admin.php';