简体   繁体   中英

Getting Data in my Laravel Server from Android APP via Json

So, I'm building a Laravel Aplication for my Android APP.

I'll send a Json from Android and I need do recieve this in my laravel Aplication.

How can I manage this?

How Can I build this Route and this Controller function?

Route::get('/json', 'JsonController@json' );

So, What should I do in this "JsonController" do work with this Json

I used this route:

Route::get('jsontest', 'JsonController@jsonFunction');

and called this function and worked. Thank for Help from @NIRANJAN

   public function jsonFunction(){

        $jsonPostedData = Input::all();
        return $jsonPostedData;
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM