S
S
Sergey Kotov2020-02-07 09:48:29
Laravel
Sergey Kotov, 2020-02-07 09:48:29

How to use webhoom?

Amocrm sends notifications to the address, let's say https://test.ru/webhook. How should I now create a route to pull an array of data from https://test.ru/webhook ? or

Route::post('webhook', '[email protected]');
Route::get('webhook', '[email protected]');

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class webhook extends Controller
{
    public function index(){
        return view('pages.webhook');
        //и все равно непонятно как выташить данные $_POST[] ?
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kotov, 2020-02-08
@liqrizz

Route::post('webhook', '[email protected]');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question