app/Http/Controllers/ApiPostController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return PostModel
     */
Store a newly created resource in storage.
@param  \Illuminate\Http\Request  $request
@return PostModel
Store a newly created resource in storage . @param \ Illuminate \ Http \ Request $request @return PostModel
public function store(Request $request)
    {
        $post = new PostModel($request->all());
        $post->save();
        return $post;
    }
public function store ( Request $ request ) { $ post = new PostModel ( $ request -> all ( ) ) ; $ post -> save ( ) ; return $ post ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//