app/Http/Controllers/Site/StationController.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(StationRequest $request)
    {
        $record = $request->all();
        $station = Station::create($record);
        return $this->success($station);
    }
public function store ( StationRequest $ request ) { $ record = $ request -> all ( ) ; $ station = Station :: create ( $ record ) ; return $ this -> success ( $ station ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .