mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 22:13:18 -05:00 
			
		
		
		
	* Create PHP CS Fixer config and add to CI workflow * Run php cs fixer on project * Add newline at end of file * Update to use PHP CS Fixer v3 * Run v3 config on project * Run seperate config in CI
		
			
				
	
	
		
			24 lines
		
	
	
		
			558 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			558 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Crater\Http\Controllers\V1\Payment;
 | 
						|
 | 
						|
use Crater\Http\Controllers\Controller;
 | 
						|
use Crater\Http\Requests\SendPaymentRequest;
 | 
						|
use Crater\Models\Payment;
 | 
						|
 | 
						|
class SendPaymentController extends Controller
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Handle the incoming request.
 | 
						|
     *
 | 
						|
     * @param  \Illuminate\Http\Request  $request
 | 
						|
     * @return \Illuminate\Http\JsonResponse
 | 
						|
     */
 | 
						|
    public function __invoke(SendPaymentRequest $request, Payment $payment)
 | 
						|
    {
 | 
						|
        $response = $payment->send($request->all());
 | 
						|
 | 
						|
        return response()->json($response);
 | 
						|
    }
 | 
						|
}
 |