app/Http/Controllers/CalcHistController.php 1 location
|
@@ 41-50 (lines=10) @@
|
38 |
|
/** |
39 |
|
* @return string |
40 |
|
*/ |
41 |
|
public function getSimulatorHistory() |
42 |
|
{ |
43 |
|
$user = Auth::user(); |
44 |
|
|
45 |
|
$data = DB::table('simulator_history')->where('user_id','=',$user->id)->get(); |
46 |
|
|
47 |
|
$data = json_encode($data); |
48 |
|
|
49 |
|
return $data; |
50 |
|
} |
51 |
|
|
52 |
|
} |
53 |
|
|
app/Http/Controllers/CalculatorApiController.php 1 location
|
@@ 102-109 (lines=8) @@
|
99 |
|
/** |
100 |
|
* @return array|static[] |
101 |
|
*/ |
102 |
|
public function getUserCalculs() |
103 |
|
{ |
104 |
|
$user = Auth::user(); |
105 |
|
|
106 |
|
$data = DB::table('simulator_history')->where('user_id', '=', $user->id)->get(); |
107 |
|
|
108 |
|
return $data; |
109 |
|
} |
110 |
|
|
111 |
|
public function dataVerify(Request $request) |
112 |
|
{ |