Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Route::get('/receiveSignal', 'SignalController@receiveSignal');
- Route::get('/sendSignal', 'SignalController@sendSignal');
- public function sendSignal()
- {
- $data = ['spotid' => '421156', 'name' => 'Test', 'desc' => 'some desc', 'StartofDetection' => '2018-01-17 22:22:22'];
- $dataJson = json_encode($data);
- return $dataJson;
- }
- public function receiveSignal()
- {
- $test = file_get_contents('php://input');
- dd($test);
- }
Add Comment
Please, Sign In to add comment