app/Http/Controllers/FantasyAdminController.php
/**
     * Simple Ticket buy CheckOut
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
Simple Ticket buy CheckOut
@param Request $request
@return \Illuminate\Http\JsonResponse
Simple Ticket buy CheckOut @param Request $request @return \ Illuminate \ Http \ JsonResponse
public function checkout(Request $request)
    {
        $charge  = new BuyTickets($this->raffle , $request);
        if($charge->has_error)
        {
            return response()->json(['status'=>$charge->message],417);
        }
    }
public function checkout ( Request $ request ) { $ charge = new BuyTickets ( $ this -> raffle , $ request ) ; if ( $ charge -> has_error ) { return response ( ) -> json ( [ 'status' => $ charge -> message ] , 417 ) ; } }
Simple Ticket buy CheckOut
 @param Request $request
 @return \Illuminate\Http\JsonResponse
Simple Ticket buy CheckOut @param Request $request @return \ Illuminate \ Http \ JsonResponse