app/Http/Controllers/ApiPostController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return int 1 if deleted
     */
Remove the specified resource from storage.
@param  int  $id
@return int 1 if deleted
Remove the specified resource from storage . @param int $id @return int 1 if deleted
public function destroy($id)
    {
        $post = PostModel::findOrFail($id);
        return $post->delete();
    }
public function destroy ( $ id ) { $ post = PostModel :: findOrFail ( $ id ) ; return $ post -> delete ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//