app/Http/Controllers/Site/StationController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(StationRequest $request, Station $station)
    {
        $record = $request->all();
        $station->update($record);
        return $this->success($station);
    }
public function update ( StationRequest $ request , Station $ station ) { $ record = $ request -> all ( ) ; $ station -> update ( $ record ) ; return $ this -> success ( $ station ) ; }
Update the specified resource in storage.
Update the specified resource in storage .