mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'master' into dillon/34.7-jenkins-vapor
This commit is contained in:
@@ -45,15 +45,18 @@ class Kernel extends HttpKernel
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\App\Http\Middleware\LogRequestPathMiddleware::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
'throttle:300,1',
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\App\Http\Middleware\LogRequestPathMiddleware::class,
|
||||
],
|
||||
|
||||
'apipub' => [
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\App\Http\Middleware\LogRequestPathMiddleware::class,
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class LogRequestPathMiddleware
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
$method = $request->method();
|
||||
Log::channel('request_path')->info('Request Method: ' . $method);
|
||||
$fullUrl = $request->fullUrl();
|
||||
Log::channel('request_path')->info('Request URL: ' . $fullUrl);
|
||||
|
||||
if ($request->isMethod('post')) {
|
||||
$payload = $request->all();
|
||||
Log::channel('request_path')->info('Request Payload POST: ', $payload);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
@@ -123,6 +123,12 @@ return [
|
||||
'path' => storage_path('logs/laravel_perfex_crm.log'),
|
||||
'level' => 'info',
|
||||
],
|
||||
|
||||
'request_path' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel_request_path.log'),
|
||||
'level' => 'info',
|
||||
],
|
||||
//Custom Log Channels - Ends
|
||||
|
||||
//Custom Log Channels - For Laravel Vapor AWS - Starts
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@
|
||||
"lodash": "^4.17.13",
|
||||
"resolve-url-loader": "^3.1.5",
|
||||
"vue-loader": "^15.11.1 ",
|
||||
"vue-template-compiler": "^2.7.16"
|
||||
"vue-template-compiler": "^2.7.14"
|
||||
},
|
||||
"paths": {
|
||||
"build": {
|
||||
|
||||
+1
@@ -124,6 +124,7 @@
|
||||
</list-component>
|
||||
|
||||
<!-- <list-polling-component ref="pendingOrdersList" section="pendingOrdersSection" :endpoint="route('api.transaction.list.job')" :options="{per_page: 5, status: 2, owner_type: 'App\\Models\\Booking', type: 1, original_currency_id_in: [selectedCurrency.id], transaction_service_id: selectedService.id, does_not_have_refund_in_progress: true}">
|
||||
<list-polling-component ref="pendingOrdersList" section="pendingOrdersSection" :endpoint="route('api.transaction.list.job')" :options="{per_page: 5, status: 2, owner_type: 'App\\Models\\Booking', is_not_fully_refunded: true, type: 1, original_currency_id_in: [selectedCurrency.id], transaction_service_id: selectedService.id}">
|
||||
<template slot="list" slot-scope="{data}">
|
||||
<supplier-pending-order-component :data="data" v-on:input="updateOrder($event)"></supplier-pending-order-component>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user