dimanche 19 août 2018

Post data to external URL

I am trying to post data from one sperate laravel website to another laravel site.

I am sending register post request from abc.com controller to xyz.com register controller.

abc.com structure

web.php

Route::post('register','SiteController@register')->name('register');

SiteController.php

public function register(Request $request){
    $full_name = $request->input('full_name');
    $email_address = $request->input('email_address');
    $password = $request->input('password');

    $data = [];
    $data['full_name'] = $full_name;
    $data['email'] = $email_address;
    $data['password'] = $password;

}

xyz.com site structure

using https://github.com/jeremykenedy/laravel-auth for login and registration.

I tried various options from requests, redirect and also tried guzzle

But no luck.

Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire