Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\DB;
- use App\Facades\AddDatabaseClass;
- //use Session;
- /**
- * Description of GoodsController
- *
- * @author Ilshat
- */
- class OrderController {
- private $inputOrders;
- private $ipBuyer;
- public function __construct(Request $request)
- {
- $this->inputBuyer = $request->input('buyer');
- $this->inputOrders = $request->input('orders');
- $this->ipBuyer = $request->server('HTTP_X_REAL_IP');
- }
- public function MessageFrontFlash($typeM, $boyM)
- {
- echo '<script>toastr.'.$typeM.'("'.$boyM.'");</script>';
- }
- public function order(Request $request)
- {
- $this->validate($request, [
- 'buyer.name' => 'required',
- 'buyer.surname' => 'required',
- 'buyer.phone-number' => 'required',
- ]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement