app/Http/Controllers/TestController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request,TestModel $testM)
    {
        $input = $request->all();
        if($testM::create($input))
            return $this->returnData(['respCode'=>'000']);
        else
            return $this->returnData(['respCode'=>'457']);
    }
public function store ( Request $ request , TestModel $ testM ) { $ input = $ request -> all ( ) ; if ( $ testM :: create ( $ input ) ) return $ this -> returnData ( [ 'respCode' => '000' ] ) ; else return $ this -> returnData ( [ 'respCode' => '457' ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//